Hey, I wish to create a random array of size R x C, and wish to have that array consist of either green or white cells.
My thoughts were to take the script for making a random Black and White image:
Where p is some number between 0 and 1.
Then taking this image and somehow replacing all cells that have a value of 1 (black) and replace with a value of 255 in the second channel (green channel) in a RGB image. But a problem occurs with switching from a logical array to a uint8 array.