ScratchData LogoScratchData
Back to nembence's profile

Random detector

NEnembence•Created December 4, 2024
Random detector
9
9
148 views
View on Scratch

Instructions

It might works only on Google Chrome on PC This project measures the amount of Math.random() calls between frames. Press space to run a "pick random (0.0) to (1.0)" block - that makes 1 Math.random() call. Seeing inside, changing sprite and grabbing blocks result in high bursts of random. Scratch calls 1 Math.random() in every active frame when a script runs, before the script is executed. Also list monitors call Math.random() when they update. There is a list inside, that logs the measurement results, but it's hidden because of this. Thanks to @watashida for the Math.random() prediction code

Project Details

Project ID1106109101
CreatedDecember 4, 2024
Last ModifiedDecember 6, 2024
SharedDecember 4, 2024
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root