mardi 27 octobre 2015

creating a random function that only gives integers in Processing

I'm trying to use the random() function in Processing in terms of an array, so random index #s are selected each time. I need all my random numbers to be integers for the array to work, is there any way I can specify the random function so it only returns whole numbers?




Aucun commentaire:

Enregistrer un commentaire