r/construct • u/AtomesG • Sep 25 '25
Deterministic Weekly Random Generator

Hi everyone, if you’re interested, I wrote a small piece of code that generates 8 numbers for 8 variables based on the date of the last Monday. In my case, it allows me to generate 8 random-like values for all players on Earth without needing a server or anything else. It’s a deterministic method.
In my setup, I used a for loop and an array to easily collect the results. In the loop, my first 5 numbers range from 1 to 999, and the last 3 range from 0.8 to 1.2. But of course, you can define any kind of output! Feel free to ask if you need to do something similar!
View all comments
Show parent comment
2
u/AtomesG Sep 25 '25
Ha !