8 #define MT_BUFFER_NUM 10
13 uint32_t mt_trandom();
14 static int32_t trandom(uint32_t max
=2147483647LU)
17 uint32_t seed
=mt_trandom();
18 seed
=seed
%2147483647LU;
19 seed
=seed
/((2147483647LU/max
)+1);
21 return((int32_t)seed
);
23 static int32_t loadtrandom(uint32_t max
=2147483647LU)
25 uint32_t seed
=mt_trandom();
28 return((int32_t)seed
);
30 void push_trandom_uniform_seed(uint32_t newseed
);
31 void push_trandom_double_seed(uint32_t newseed1
,uint32_t newseed2
);
32 void push_trandom_triple_seed(uint32_t newseed1
,uint32_t newseed2
,uint32_t newseed3
);
33 void pop_trandom_uniform_seed();
37 int32_t basic_random(int32_t max
=2147483647);