JacksEscape/util/rand.c
2024-03-26 13:26:22 +08:00

10 lines
142 B
C

#include "rand.h"
#include <stdlib.h>
double rand_Double01() {
// Very bad implementation.
return ((double)rand()) / (double)RAND_MAX;
}