from random import randrange random_number = randrange(0, n)
did you try using Google?
Why are you against the random module?
it's probably an interview puzzle or something
yes but i didn't understand that algorithm. so i was wondering if there's a simpler way
Обсуждают сегодня