shithub: femtolisp

ref: 8964eb4f8dc80fa1461e5c0b2fae2b5f72c18eb0
dir: /llt/random.h/

View raw version
#ifndef __LLTRANDOM_H_
#define __LLTRANDOM_H_

#define random() genrand_int32()
#define srandom(n) init_genrand(n)
double rand_double();
float rand_float();
double randn();
void randomize();
uint32_t genrand_int32();
void init_genrand(uint32_t s);
u_int64_t i64time();

#endif