Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

rand - generate pseudo-random number

 

SYNOPSIS

<rand $min $max>


DESCRIPTION
The rand function returns a pseudo-random integer n between $min and $max.


DIAGNOSTICS
rand returns a pseudo-random integer n, $min <= n < $max.


EXAMPLE

<rand 0 100>
Your test score is $ret%.

The output might be:

Your test score is 42%.


CAVEATS
The rand function was added Nov. 7 1996.

Although seeded, the randomness of numbers generated by $rand may vary by platform.


SEE ALSO
randpick, srand


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.