HTBasic Help
×
Menu
Index

RND

Returns a pseudo-random number.
 
 RND
 
Usage:
IF RND>0.25 THEN GOTO Start
Percent=RND*100
Example: RND.BAS
Description:
A pseudo-random number greater-than zero and less-than one is returned. A seed value determines the starting point in the series. The seed can be modified using the RANDOMIZE statement. The default seed at start-up, SCRATCH, SCRATCH A and prerun is 37,480,660. The series of numbers returned is not guaranteed to be the same on different versions of HTBasic
See Also: