BEEP-8 Helper Lib 1.0.0
Loading...
Searching...
No Matches
mt.h
Go to the documentation of this file.
1
38#pragma once
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44#include <stdint.h>
45
53extern void init_genrand(unsigned long s);
54
63extern void init_by_array(unsigned long init_key[], int key_length);
64
72extern uint32_t genrand_int32(void);
73
81extern int32_t genrand_int31(void);
82
92extern int32_t genrand_min_max(int min_, int max_);
93
94#ifdef __cplusplus
95}
96#endif
uint32_t genrand_int32(void)
Generates a random number on [0, 0xffffffff] interval.
Definition mt.c:110
void init_genrand(unsigned long s)
Initializes the state of the Mersenne Twister with a seed.
Definition mt.c:65
int32_t genrand_min_max(int min_, int max_)
Generates a random number in the specified range [min_, max_].
void init_by_array(unsigned long init_key[], int key_length)
Initializes the state of the Mersenne Twister with an array.
Definition mt.c:84
int32_t genrand_int31(void)
Generates a random number on [0, 0x7fffffff] interval.
Definition mt.c:148