This commit is contained in:
Richard
2026-03-26 18:43:01 +01:00
commit 9616a8236b
25 changed files with 2773 additions and 0 deletions

19
reference/random.js Normal file
View File

@@ -0,0 +1,19 @@
next() {
let e = 0 | (this.state += 0x9e3779b9);
return (
(
(
(
e = Math.imul(
(
e = Math.imul(
e ^ (e >>> 16), 0x85ebca6b
)
) ^ (e >>> 13),
0xc2b2ae35,
)
) ^ (e >>> 16)
) >>> 0
) / 0x100000000
);
}