X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=mt.h;fp=mt.h;h=f7ac92a386842e9e677da1e950a7524ba1ce2510;hb=841f94c4182f8dff0253db9bae4922c3c9039a5f;hp=0000000000000000000000000000000000000000;hpb=3ef599c7104a20c4f5268dbefb6590aa3e285663;p=vor.git diff --git a/mt.h b/mt.h new file mode 100644 index 0000000..f7ac92a --- /dev/null +++ b/mt.h @@ -0,0 +1,11 @@ +#ifndef VOR_MT_H +#define VOR_MT_H + +#include + +void init_mt(uint32_t s); +uint32_t irnd(void); // [0, 0xfffffff] +float frnd(void); // [0, 1) +float crnd(void); // [-0.5, 0.5) + +#endif // VOR_MT_H