SilverScreen Solid Modeler

srand

srand

Previous topic Next topic  

srand

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

void srand( int seed )

 

int seed;         /* ramdon number generator seed value */

 

 

 




Synopsis

#include "stdlib.h"

 

The srand function prepares the pseudo-random number generator for a new sequence of random numbers.

 

 

Parameters

seed is any positive integral number.

 

 

Return Value

none

 

 

Comments

If rand is called before srand, the seed used will be 1.

 

 

See Also

rand