Created
May 8, 2023 06:40
-
-
Save kuboon/c5b8f60044de747015fe8df446bb862e to your computer and use it in GitHub Desktop.
xorshift32 for Excel / google sheets # replace "input" to A1 or anything
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=LET(LX, LAMBDA(X, A, BITXOR(X, BITLSHIFT(BITAND(X, 2^(32-A)-1), A))), RX, LAMBDA(X, A, BITXOR(X, BITRSHIFT(X, A))), LX(RX(LX(input, 13), 17), 5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment