rnd()

The rnd( function generates a random number between 0 and 1.


Parameters

No parameters.


Description

This function generates a random floating point numeric value between 0 and 1. It will generate all sorts of strange values like 0.453321468099 or 0.9844334343219.

This is the basic function upon which all other Panorama random functions are based, including randominteger(, randomletter(, randomword(, randomline(, arrayrandomize, arrayrandomize( and randomarrayelement(.

Technical Note: This function generates a 32 bit random number using the arc4random_uniform( function, then converts to an floating point value between 0 and 1. For technical information about this method of random number generation see the arc4random man page.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0