An algorithm to generate a random map of islands