No "pick random" booleans are used at all in this project!!! So in December I said I'd have a project out in January. This is not that project. It's still a WIP... so I made this in like an hour and a half. It's just some fun fact number stuff. Click those buttons :v The big X at the bottom clears the Random Numbers list. Use wisely!
Thanks to my dad for explaining to me about one of the methods in which computers determine "random" numbers. How does it work? You can find the script in the workspace for sprite ButtonGenerate, but I'll explain it here to the best of my ability. Oh, and before we start, the proper name for these random numbers would be "psuedorandom" cause it's not actually random but it follows similarly with the mathematical definition of random numbers. First, we take the computer's internal clock (for this project, I use the "Days Since 2000" block for it's seconds) and multiply it by some insanely large number (I used 5,462,135,498,763,213 [5.46 quintillion]), then add to it some other insanely larger number (12,354,987,645,321,354,987,654,321 [12.35 septillion] in my case). Now, let's say that number can be represented as "x". We take (x) mod (y), "y" being a decently large prime number but not too large (I used 199). We then take that result and divide it by the same prime number. Now, what mod does is that it takes the first number, divide it by the second number, and spit out the remainder. So 8 mod 2 would be zero, while 9 mod 2 would be one. And so our final result is a random number between 0 and 1, which then can be multiplied by some other number to provide people with a random number within their desired range. Hmm. Not sure if I explained this too well. Ask me any questions you like!