At My Fingertips
Rapid Playground
Functions involving randomness
Returns a random element from the given sequence.
Returns a list with a random sample of elements from the given sequence.
Returns a random integer between the two specified values, inclusive.
Returns a random floating point number between 0 (included) and 1 (excluded).
Returns a list with `k` unique elements sampled from the given sequence.
Shuffles the elements of the given sequence, mutating the parameter.
See also the official documentation of the random module
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 087deb5 (Thu, 13 Mar 2025 15:17:46 GMT)