diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-20 10:53:19 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-20 10:53:19 -0800 |
commit | a9bfe650038afea8b751175cac16f6027345e45f (patch) | |
tree | 9a7f9feb76a64bb3efe573036d80b7bdbf8a59a5 /include/base/rng.h | |
parent | 1c8d4e69205fd875f6bec3fa3bd929c2e7f52f62 (diff) |
Chore: reorganize libutf and libfmt into base
I found the split to be arbitrary. Better to include the functionality
in the standard library. I also split the headers to allow for more
granular inclusion (but the library is still monolithic). The only
ugliness is the circular dependency introduced with libutf's generated
functions. We put explicit prereqs with the necessary object files
instead.
Diffstat (limited to 'include/base/rng.h')
-rw-r--r-- | include/base/rng.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/base/rng.h b/include/base/rng.h new file mode 100644 index 0000000..ee41509 --- /dev/null +++ b/include/base/rng.h @@ -0,0 +1,9 @@ +#pragma once + +int rng·init(uint64 seed); +double rng·random(void); +double rng·exponential(double lambda); +bool rng·bernoulli(double f); +double rng·normal(void); +uint64 rng·randi(int max); +uint64 rng·poisson(double mean); |