Python - drawing randomly n numbers integer from range
Question: I would like get the same effect as when I use `getn`, but it should be
integers numer from interval `[1...100]`


Answer: 
    from random import randint
    
    randint(1, 100)    # => 86
    

If you want a bunch of numbers,

    
    
    def getn_rand(n):
        return [randint(1, 100) for _ in range(n)]
    

or if the numbers have to be distinct (no duplicates),

    
    
    from random import sample
    
    def getn_rand_distinct(n):
        return sample(range(1, 101), n)
    

