Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- x = int(raw_input("Enter number: "))
- def multiCaller(x):
- if x == 0:
- return []
- else:
- return [random.randint(0, 100)] + multiCaller(x-1)
- def get_list(x):
- res = multiCaller(x)
- res.sort()
- return res
- print get_list(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement