githubEdit

Rand

Return a random double between 0 and 1

Method Signature

Rand(algorithm=[string])

Arguments

Argument
Type
Required
Description
Default

algorithm

string

false

The algorithm to use to generate the random number.

Examples

simple example Using rand()

To generate a random number between 0 to 1

Run Examplearrow-up-right

writeOutput( rand() );

simple example Using rand() with algorithm

To generate a random number between 0 to 1 by using bxmX_COMPAT algorithm

writeOutput( rand( "bxmX_COMPAT" ) );

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?