Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- x=input('Input a number ')
- x=int(x)+1
- for loop in range(x):
- while 1:
- test=random.randrange(x)
- print(test," ", end='')
- if loop==test:
- print()
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement