samedi 30 septembre 2017

Consistent discrete uniform number generation

How would one create a function where the following would give the same result every time, generates every integer value an equal amount of times, repeats, and is seemingly random?

while(true)
{
    number = discrete_uniform_generator(A_VALUE, ANOTHER_VALUE);
    printf("%i ", number);
}




Aucun commentaire:

Enregistrer un commentaire