[Solved] I would like to use the ran variable and have it reset and generate a new number everytime it is called. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[Solved] I would like to use the ran variable and have it reset and generate a new number everytime it is called.

https://code.sololearn.com/ch23RalV1p1h/?ref=app

25th Dec 2020, 7:07 PM
Adam Stork
Adam Stork - avatar
2 Answers
+ 4
One way could be using a loop: For each iteration, do * sample random range (your ran) * print
25th Dec 2020, 7:18 PM
Lisa
Lisa - avatar
+ 3
So simple! :) Thank you, Lisa!
25th Dec 2020, 7:39 PM
Adam Stork
Adam Stork - avatar