We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey! I've started using p5.js after using processing, and so I am stuck trying to change a float into an int.
I want to get a random integer so I can upload a random image:
// get a random number for image
imgNum = random(0, 14);
How would I go about converting the random number into an int?