lundi 28 décembre 2020

Random seed in Lua

-Read seed number and set seed -In a loop, generate a random integer between 1 and 6(inclusive of the limit), and increment a counter the number of iterations. -If the number generated is 6, exit the loop -Print the number of iterations

Sample input 0

Sample output 3 5 5 6 4




Aucun commentaire:

Enregistrer un commentaire