File: mt.h

package info (click to toggle)
vor 0.5.8-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,284 kB
  • sloc: ansic: 2,223; sh: 345; makefile: 115
file content (11 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#ifndef VOR_MT_H
#define VOR_MT_H

#include <inttypes.h>

void init_mt(uint32_t s);
uint32_t urnd(void); // [0, 0xfffffff]
float frnd(void);  // [0, 1)
float crnd(void);  // [-0.5, 0.5)

#endif // VOR_MT_H