Most random function I could find is a sequence function, it keep the last generated result as a seed of the next call
I want a pure function that could be run on its own and could give seemingly random sequence given any number from start to end and a seed
To be honest I want an algorithm to generate random number in parallel (and could be used in GPU) only with a random seed at start and index of each element as an input
Maybe I could use a hash function but I would like to know which algorithm could give the most possible uniform distribution and always seemingly random given any seed and any length
Aucun commentaire:
Enregistrer un commentaire