rnd(
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

- makeinteger( -- makes a random integer with up to the specified # of digits (may be less).
- randominteger( -- generates a random integer between the starting and ending values.
- randomletter( -- returns a random letter.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0