<< Previous | Next >> | |
|
Description
- Returns a uniformly distributed random number in the range 0.0 ≤ v < 1.0. Uses algorithm:
rand = ( 5 * rand ) modulo 232
- A default seed value is set on startup, but can be changed with the
srand()
function.rand()
is not reentrant.Return value
- A uniformly distributed random number: 0.0 ≤
v
< 1.0.Library
- MATH.LIB
See also
- randb, randg, srand
Dynamic C Functions | << Previous | Next >> | rabbit.com |