Can you use the built in function randomElement() with the range so i can get a random element in the array with a specific range?
I am trying to get a random element in an array with a range to it, i am unable to use .random as it is an array.
I see that there is randomElemt(using:) but not sure how RandomNumberGenerator works
Aucun commentaire:
Enregistrer un commentaire