Rand
Last updated
Was this helpful?
Return a random double between 0 and 1
Rand(algorithm=[string])algorithm
string
false
The algorithm to use to generate the random number.
To generate a random number between 0 to 1
writeOutput( rand() );
To generate a random number between 0 to 1 by using bxmX_COMPAT algorithm
writeOutput( rand( "bxmX_COMPAT" ) );
Last updated
Was this helpful?
Was this helpful?
writeDump( rand() >= 0 && rand() <= 1 );
writeDump( rand( "SHA1PRNG" ) >= 0 && rand() <= 1 );
