I have a 2D grid of cells in Unity, and each cell can be on or off. I want to randomly generate the on cells, and when I just assign a probability to each cell, the entire grid has the same density, looking something like this:
But I would like different densities for random areas, something more like:
Is there some kind of algorithm to make this random generation possible?