minecraft-physics
minecraft-physics
56 / 1
25th Sep 2022
30th Sep 2022
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

  • SeymourG
    SeymourG
    2nd Oct 2022
    Deterministic randomness. Oxydox? +1
  • dziki_szogun
    dziki_szogun
    1st Oct 2022
    too much time spend -1
  • BEST_CCCP
    BEST_CCCP
    29th Sep 2022
    ur really really nice!!!!
  • Pexy
    Pexy
    28th Sep 2022
    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.
  • Jerehmia
    Jerehmia
    27th Sep 2022
    @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.
  • Phoenix2k10
    Phoenix2k10
    27th Sep 2022
    What is psuedo rng supposed to mean? The term psuedo is usually used to describe flat earths.
  • demonlikespie1
    demonlikespie1
    27th Sep 2022
    cool (cts)
  • Pexy
    Pexy
    26th Sep 2022
    this is awesome
  • micque
    micque
    26th Sep 2022
    nice! +1!
  • Jerehmia
    Jerehmia
    25th Sep 2022
    @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. :)