<< Previous | Next >>

randb

float randb( void );

Description

Uses algorithm:

   

rand = ( 5 * rand ) modulo 232

A default seed value is set on startup, but can be changed with the srand() function. randb() is not reentrant.

Return value

Returns a uniformly distributed random number: -1.0 v < 1.0.

Library

MATH.LIB

See also

rand, randg, srand


Dynamic C Functions << Previous | Next >> rabbit.com