OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
rand.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  mt19937_state
 

Macros

#define MT19937_VECTOR_LEN   624
 

Functions

void mt19937_init (mt19937_state *state, uint32_t seed)
 
uint32_t mt19937_gen32 (mt19937_state *state)
 
void srand (uint32_t seed)
 
uint32_t rand (void)
 

Macro Definition Documentation

◆ MT19937_VECTOR_LEN

#define MT19937_VECTOR_LEN   624

Function Documentation

◆ mt19937_gen32()

uint32_t mt19937_gen32 ( mt19937_state *  state)

◆ mt19937_init()

void mt19937_init ( mt19937_state *  state,
uint32_t  seed 
)

◆ rand()

uint32_t rand ( void  )

◆ srand()

void srand ( uint32_t  seed)