Thread: [Solved] random
View Single Post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 01-21-2018 , 08:22   Re: random
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
No its a bad code
And might cause infinite loop causing a crash...

Fill out the numbers you want into an array then do a random taking array size as parameter in the random operation
The chance of that happening in that span with so few exceptions is so small that it's not even worth caring about.
Black Rose is offline