index
:
universe
feat/dwm-pipe
laptop
master
phone
selfhost
Fundamental libraries and executables
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
base
/
rng
/
bernoulli.c
blob: 02f531e5f62e6031295f2247b59370004e52de4c (
plain
)
1
2
3
4
5
6
7
#include
"internal.h"
bool
rng
·
bernoulli
(
double
f
)
{
return
rng
·
random
()
<
f
;
}