How can I use a variable in randrange()?
Imzecorella

I want to use a variable in rangerange() but it seems that I can not do that. Any alternatives?
Example:
ACT = 5
from random import randrange
eACT = randrange(ACT)

You are viewing a single comment. View All
Answered by Brendan23 [earned 5 cycles]
View Answer
Imzecorella

@Brendan23 oops my bad, I used the same variable name twice without noticing, cossing a collision in values. My bad