Match each function with its use.
Random basic functions
Report a typo
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.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.