Function that returns a random block.