I have a question that asking me to use a seed in a random number generator. For example, if the seed is 13771, I need to generate 50 (x,y) co-ordinates using that seed.
How is this achieved? I haven't the slightest clue.
I have this loop:
for (int i = 0; i <= num-1; i++){
}
Where num = 50. I don't know how to use the seed to create random numbers.
Aucun commentaire:
Enregistrer un commentaire