Random generation of tile compositions