mercredi 25 février 2015

Arbitrary 2D random number generation based on single seed

I am trying to fully cover a 2D space with random values based on a seed and starting at an origin, from which i want to be able to go into all directions without much computation.


The basic idea is that i need a function float rnd_2d(int x, int y, uint64_t seed); that generates a random number based on the inputs in O(1).


My goal is to create noise procedurally in all directions.





Aucun commentaire:

Enregistrer un commentaire