ScratchData LogoScratchData
Back to Top-Script's profile

seeded random number generator

TOTop-Script•Created April 3, 2025
seeded random number generator
2
2
34 views
View on Scratch

Instructions

! USE TURBO MODE ! (hold shift while clicking the green flag!) in continuing my series on noise, here is a pseudo-random-number-generator that uses seeds! if you use this please give credit to me :] this is useful when you need random numbers, but you want them to be reproducible. for example, minecraft uses this so that you can generate unique worlds, but when someone else plugs in the seed you had, it generates the same world! click some of the number keys to check out different tests/demonstrations [1] - renders noise based on pixel position [2] - draws pixels based on numbers (to ensure distribution levels are roughly even) [3] - benchmark test for my random number generator [4] - benchmark test for scratchs built in random number generator to make a random generator, your goal is to scramble the seed number using as many different mathematical operations as you want. the goal is to make an equation that seemingly has no pattern when you graph it. i tried my best to optimize my equation as much as possible without compromising the chaos, but despite this, the built in scratch "pick random" block is still leagues faster than my equation. i guess trying to match the efficiency of a built in block was a losing battle, but at least i tried. why is it lowkey thursday today #pseudo #random #number #generator #engine #rng #seeded #seed #math

Project Details

Project ID1156977008
CreatedApril 3, 2025
Last ModifiedApril 7, 2025
SharedApril 3, 2025
Visibilityvisible
CommentsAllowed