The code I previously used was
Randomvariable = 1 + Int((20 - 1 + 1) * Rnd())
I'm a bit concerned it wasn't right because the format I'm seeing online in guides is
random_number = Int(20 * Rnd) + 1
Was my way equivalent to this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…