A small piece of tech for an ongoing project. This save generates one random integer per frame, but crucially, it can be seeded. If you need to replay a random sequence, you can just restore the previous RNG state..
subframe
random
psuedorandom
prng
Comments
-
Deterministic randomness. Oxydox? +1
-
too much time spend -1
-
ur really really nice!!!!
-
psuedo can mean false/fake, inaccurate, or deceiving. in this context "pseudo-rng" simply means that it is fake, possibly deceiving rng, and not true rng. flat earth is one of the more popular branches of pseudo-science; fake science, mostly consisting of conspiracy, it is meant to deceive people.
-
@Phoenix2k10 pseudo refers to random because the generated numbers aren't really random. What this does is basically shuffle a sequence of numbers like you'd shuffle a deck of cards, but the resulting sequence is always the same. Because the sequence is very long (here 536870912 numbers long) and you can start at any place in the sequence (determined by the seed) it seems random.
-
What is psuedo rng supposed to mean? The term psuedo is usually used to describe flat earths.
-
cool (cts)
-
this is awesome
-
nice! +1!
-
@minecraft-physics I didn't calculate the periodicity, I just implemented the 30-bit PRNG in C++ and counted the number of iterations it took before the seed reappeared in the output. :)