And welcome to the forum!
Great to have you here!!!
That be a bit tricky
In setup or before your current for-loops have a separate nested for-loop where you define the cells based on a random() number. See reference.
Where this color means bomb for example