Robin2:
What is the purpose of this linewhile (Serial.available() == 0) {what happens if you remove it and its corresponding }
...R
I removed it and it works the same, my bad, I just thought if I didn't do that it would only cycle once but now I realise it will continuously cycle.
Any idea on how to interrupt it though, or why my random colour generation only produces white?