Random

Now reading version 20.0. For the latest, read: Random for version 21

Parent page: System Query Functions - System Functions

Summary

Returns a random number between 0 and X-1.

Syntax

Random(X) : Number

Example Usage

Random(10)
Returns a value between 0 and 9.

Random(100)
Returns a value between 0 and 99.

 

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Note

The features available depend on your Altium product access level. Compare features included in the various levels of Altium Designer Software Subscription and functionality delivered through applications provided by the Altium 365 platform.

If you don’t see a discussed feature in your software, contact Altium Sales to find out more.