random_partition function

Define a random partition of the spatial domain based on a regular grid