How to make 4 LED blink randomly?

Hi. I need help. How can I use a c++ to program 4 LEDs to blink randomly using a 18F4550 micro controller? I already designed 4 individual LED circuit and each circuit uses one port of the micro controller i.e. RA0 for LED 1, RA1 for LED 2, RA2 for LED 3 and RA3 for LED 4.
I would really appreciate if anyone could help. Thanks a lot in advance. :)
You are probably better off asking that question in a micro controller forum.

I doubt that your microcontroller software accepts c++. C possibly?

Anyways this is C code which your mc compiler should accept:

http://www.cplusplus.com/reference/clibrary/cstdlib/rand/

Topic archived. No new replies allowed.