Random basic functions

Report a typo

Match each function with its use.

Match the items from left and right columns
random.uniform(a, b)
random.randint(a, b)
random.choice(seq)
random.randrange(a, b, c)
random.shuffle(seq, [random])
random.sample(population, k)
Shuffles the sequence.
Returns a pseudo-random k length list from a population sequence.
Returns a pseudo-random float number in the range between a and b.
Returns a pseudo-random number from the range between a and b with a step c.
Returns a pseudo-random element from any sequence.
Returns a pseudo-random integer number in the range between a and b.
___

Create a free account to access the full topic