Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def main():
- x = getint("Enter number of sides variable:")
- def roll(x):
- r = random.randint(1, x)
- return r
- def getint(prompt):
- x = input(prompt)
- x = int(x)
- return x
- main()
- print(roll(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement