diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 22:37:48 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 22:37:48 -0500 |
| commit | fc9a6f1416be514e9d26b301d05e7e347560560b (patch) | |
| tree | 7d61cc3657c36dde05135f17dbf5923cff177abf /stdlib/nums.c | |
| parent | 52e3d3fe6f2c3e5051affe155fed364d1a5d623c (diff) | |
Add RNGs to the language
Diffstat (limited to 'stdlib/nums.c')
| -rw-r--r-- | stdlib/nums.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/stdlib/nums.c b/stdlib/nums.c index 1a8fec21..b8de553e 100644 --- a/stdlib/nums.c +++ b/stdlib/nums.c @@ -57,10 +57,6 @@ public CONSTFUNC double Num$mod(double num, double modulus) { return (result < 0) != (modulus < 0) ? result + modulus : result; } -public double Num$random(void) { - return drand48(); -} - public CONSTFUNC double Num$mix(double amount, double x, double y) { return (1.0-amount)*x + amount*y; } @@ -138,10 +134,6 @@ public CONSTFUNC float Num32$mod(float num, float modulus) { return (result < 0) != (modulus < 0) ? result + modulus : result; } -public float Num32$random(void) { - return (float)drand48(); -} - public CONSTFUNC float Num32$mix(float amount, float x, float y) { return (1.0f-amount)*x + amount*y; } |
