tertu submitted a new resource:
FlowerRNG Lite - Minimalistic RNG implementation
Read more about this resource...
FlowerRNG Lite - Minimalistic RNG implementation
FlowerRNG Lite is a minimalistic RNG library that you can incorporate into your own code. There are no protections, and states are simply Lua tables containing 4 numbers.
A minimal version of it fits into this post:
FlowerRNG Lite Minimal:local LRNG = {} --Returns 32 bits of random data as an integer that can be negative. local function rng_next(state) local b, c, counter = state[2], state[3], state[4] local output = state[1] + b + counter state[4] =...
Read more about this resource...