Modular C
+ Collaboration diagram for C◼lib◼rand:

Modules

 C◼lib◼rand◼uni: symbols inserted from C◼snippet◼uniform.
 
 Platform features used by module C◼lib◼rand
 Some features are recovered or pre-computed specifically for the target platform by looking into the C include files:
 
 Specific macros to deal with the structure of module C◼lib◼rand.
 

Typedefs

typedef int C◼lib◼rand◼type
 The return type for C◼lib◼rand is a simple int. More...
 
typedef unsigned C◼lib◼rand◼seed
 The seed type for C◼lib◼rand is a simple unsigned. More...
 

Functions

void C◼lib◼rand◼set (C◼lib◼rand◼seed)
 Seed the pseudo-random generator function C◼lib◼rand. More...
 

Detailed Description

Typedef Documentation

§ C◼lib◼rand◼seed

typedef unsigned C◼lib◼rand◼seed

The seed type for C◼lib◼rand is a simple unsigned.

Definition at line 132 of file C-lib-rand.c.

§ C◼lib◼rand◼type

The return type for C◼lib◼rand is a simple int.

Definition at line 108 of file C-lib-rand.c.

Function Documentation

§ C◼lib◼rand◼set()

void C◼lib◼rand◼set ( C◼lib◼rand◼seed  )

Seed the pseudo-random generator function C◼lib◼rand.

Setting the seed with this function to a different value at each run ensures that the produced sequences are different.

Warning
This generator gives not much guarantees for its quality and should be avoided.