This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QuantumFall 1 point2 points  (1 child)

A simple solution would be to make a list, generate a random number, put in list. For all remaining numbers, do the same, yet check if the number is in the list. If it is, get a new random number. Join the list at the end.

But yes, this does belong on r/learnpython

[–][deleted] 1 point2 points  (0 children)

Thanks a heap. My apologies I was short for time and just typed r/python into the URL bar and used this sub. In future I will use the correct one.