I’m trying to make an RNG game where I roll python statements. I’m supposed to have a specific chance to get an RNG. If i make any codes aboke 3 rngs, only 3 of the inputs will be shown.
How do I fix this?
import random
print("roll.")
rollwork = 1
while rollwork == 1:
rolluse = input ("you rolled.")
if rolluse in ("R", "r"):
chance = (random.randint(1,100))
if chance < 40:
if rollelif == 1:
print("You've rolled a DUPLICATE ELIF STATEMENT!!")
else:
print("You've rolled an ELIF statement!")
rollelif = 1
elif chance < 70:
if rolltime == 1:
print("You rolled a DUPLICATE IMPORT TIME!")
else:
print("You've rolled IMPORT TIME with a chance of 70%!")
codestats + 2
rolltime = 1
elif chance < 90:
if rollprint == 1:
print("You rolled a DUPLICATE PRINT!")
else:
print("You rolled PRINT with a chance on 90%")
rollprint + 1
elif chance < 30:
if rollprint == 1:
print("You've rolled a DUPLICATE Tkinter")
else:
print("You rolled Tkinter with a chance of 30%!")