Howdy,
So I'm trying to make my random answers reroll (in 'randint' style) but they always stay the same while switching states.
- Here's my code : https://paste.pythondiscord.com/5MBA
**TEST 1 :**
In `load_answers.py`, I tried replacing `correct1 = randint(questions1["x"], questions1["y"])` with :
```
def correct1() :
return randint(questions1["x"], questions1["y"])
```
And in `states.py`, replaced `if answers1["guess1"] == correct1 :` with :
`if answers1["guess1"] == correct1()`
**RESULT 1 :** This just gave me a memory location as an answer
**TEST 2 :**
In `load_answers.py`, by replacing `correct1 = randint(questions1["x"], questions1["y"])` and :
```
while len(answers_set1) < 3:
answers_set1.add(randint(questions1["x"], questions1["y"]))
answers_list = sorted(answers_set1)
```
with :
```
def make_guess_question():
answers_set1 = {correct1()}
while len(answers_set1) < 3:
answers_set1.add(randint(questions1["x"], questions1["y"]))
return sorted(answers_set1)
```
and in `states.py` :
```
if answers1["guess1"] == correct1 :
print('CORRECT :', correct1)
if answers1["guess2"] == correct1 :
print('CORRECT :', correct1)
if answers1["guess2"] == correct1 :
print('CORRECT :', correct1)
```
with :
```
if answers1["guess1"] == correct1() :
print('CORRECT :', correct1())
if answers1["guess2"] == correct1() :
print('CORRECT :', correct1())
if answers1["guess2"] == correct1() :
print('CORRECT :', correct1())
```
**RESULT 2 :** It gives me numbers but they change every single frame of 60 fps and the print statement shows me `CORRECT : 5` but I clicked 3 for example.
More so, the answers in the rectangles won't change even if the answers technically do (unreachable choice)