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
Brendan23

@Brendan23 there is a chance that 2 of the same number get chosen. if you increase ACT then there will be less chance of that.