Hi I was wondering if someone is able to help me! I am currently trying to get a strip of 10 neopixels to change colour. I want to be able to code a random neopixel in the strip to change to either red, blue, green or yellow after 2 seconds. I am relatively new to Arduino so I'm still learning. I have been using the code attached and it does everything that I want it to but I would like to set the colour so they're not as randomised. I found this code online. Hopefully someone can help me cause I'm so confused
No wonder you are confused. You haven't defined the problem. "set the colour so they're not as randomised" says not nearly enough about what you want to do.
Since you have found a sketch that does at least light up pixels, please post again with a clear, complete description of the LED behaviour that you are trying to achieve. How does it differ from the behaviour of sketch that you posted? Please explain both the colour changes you want, and also the timing or any special effects.