Random instance with a fixed value before calling this the first time.The original Rogue level algorithm picks a width for each room between 4 and 25, and a height between 4 and 7.
Ignoring "gone" rooms, that gives 22^9 * 4^9 possibilities with only a 32-bit seed. So some combinations of rooms must be impossible! How does the subspace of rooms produced by the limited seed space compare with the theoretical distribution if rnd() was really random?
Weekend project, maybe? I have been thinking ever since #RoguelikeCelebration about how small RNG seeds (or poor PRNG algorithms) limit the expressive range of PCG in ways that might be unexpected.
Also no, #LavaRand is just #pseudorandom, because every #Lavalamp has a determineable cycle of blobs it'll form...
It's just that that it'll take exact info re: the filling, geometry and used bulb to be able to reconstruct and recreate the loop.
But it's a form of #pseudorandomness that is considered "sufficient"...
Tho if one uses #CloudFlare they already fucked up #ITsec so hard, they might just not use #SSL at all...
https://www.youtube.com/watch?v=1cUUfMeOijg video via @tomscott
At the headquarters of Cloudflare, in San Francisco, there's a wall of lava lamps: the Entropy Wall. They're used to generate random numbers and keep a good ...
The how behind this:
1β£ Stacking multiple semi-transparent layers increases their alpha where they overlap https://css-tricks.com/adventures-in-css-semi-transparency-land/
What the individual layers look like one under another below π
Stacking them increases the overall alpha so that, in some areas, it's > .5
A bit more on the pseudo-randomness effect given by the prime number of px `background-size` https://css-tricks.com/cicada-principle-css/
#css #alpha #cssGradient #gradient #code #coding #frontend #webDev #webDevelopment #cicada #pseudoRandom
Challenge: Given a 33 bit shift register based random number generator, shifting 32 times to make a random integer, we observe that a given value will always appear twice in the sequence. Generally unevenly spaced. How to find a value which has the closest repeat?
We could run for 2^33 iterations and keep a record in a many gigabyte array, but I imagine there's a better way.
Boosts OK!