In Crystal, how can I generate a random number?
Using Python, I can simply do the following to generate a random integer between 0 and 10:
from random import randint nb = randint(0, 10)
Aucun commentaire:
Enregistrer un commentaire