Go to the documentation of this file.
8 static const char source_common_api[] = R
"(
11 uint random_gen_java(ulong seed) {
12 seed = (seed * 0x5DEECE66DL + 0xBL) & ((1L << 48L) - 1);
16 int random_int(ulong seed) {
17 return random_gen_java(seed);
20 uint random_uint(ulong seed) {
21 return random_gen_java(seed);
24 float random_float(ulong seed) {
26 return fract(sin(((float) random_uint(seed)) * 112.9898f) * 43758.5453f, &ptr);