0

Is it possible fr randint() to return same result twice?

29th Nov 2016, 4:15 AM
Pradeep G
Pradeep G - avatar
2 odpowiedzi
+ 1
Of course, it's just like rolling a dice, it depends on the number of tries! :)
29th Nov 2016, 6:00 AM
Sfincs
Sfincs - avatar
0
If your question is about the point that it is possible that the rng returns twice the same number, then Sfincs answer is correct. If you want it to return it twice, create an object which holds the value created by your random function. This can return the value as long it is existing.
29th Nov 2016, 7:01 AM
Andreas K
Andreas K - avatar