Discuss Scratch

jessiegamer25565
Scratcher
3 posts

true random number generators

hi scratchers,
have you ever imagine how to generate true random numbers in scratch?
well, you should check out my all-awesome true random number generator.
it uses a special algorigmth called jessie microlag, an algorigmth that generates true random numbers in 7 steps.
1) take a snapshot of the current timer state.
2) wait 2048 scratch ticks
3) take another snapshot of the current timer state.
4) multiply those two together
5) strip away the whole number places, leaving only the decimal point.
6) multiply the decimal by 255 and round it.
7) output the result.
https://scratch.mit.edu/projects/238203635/
there only 1 problem. the thing MUST be calibrated before use due to the quality of the random numbers are tied to the cpu speed. that means it generates high quality random numbers on low tech and generates low quality random numbers on high tech. and the fix is calibration.
have fun with generating true randomness!

Last edited by jessiegamer25565 (Aug. 6, 2018 11:23:39)

999qu
Scratcher
55 posts

true random number generators

i was thinking something similar
999qu
Scratcher
55 posts

true random number generators

the
pickrandomto
does not work because it's not truly random
explained in this article: http://www.scratch-blog.com/2016/07/random-numbers-in-scratch.html

Powered by DjangoBB