
RNG Gambling Game: JavaScript Edition
- 01 may 2025
* A few months ago (around january I think) I tried doing something with javascript and made this """game""".
* One day in high school I found out that my calculator had a button that generates a number between 0.001 and 0.999, so I made up a game to pass time:
* You choose a number in that range and generate 5 random numbers; if your chosen number shows up you win the imaginary jackpot.
* If not, you sum the individual digits of your number, you do the same with each of the random numbers and compare the results.
* Again, if your number is the same as the generated ones you pretend to get your money back. If not, you lost.
* I used to do this by writing down the numbers on a notebook. This instead is an automated version of that, which also simulates money.
* This thing has been sitting in my neocities dashboard for a while, so now I decided to make a blog post about it cus I haven't been using the blog page at all.
* It's not much of a game, you just type a number and click the button until you get bored.
* But uhh enjoy I guess idk.