9 lines
178 B
D
9 lines
178 B
D
module std.random;
|
|
|
|
import arsd.webassembly;
|
|
|
|
int uniform(int low, int high) {
|
|
int max = high - low;
|
|
return low + eval!int(q{ return Math.floor(Math.random() * $0); }, max);
|
|
}
|