Exercise: Random partition
Define a function random_partition that takes a set (can be a Python list) and returns a
random partition of it (as a list of lists). You are granted access to a
function named rand that generates a random number between 0 and 1 every time
it is called. Each call is independent of the previous calls. This function is
your only facility for randomness.