if(P1_0 == 1)
{P1_1 = 0; //command 1
P1_2 = 1; //command 2
P1_3 = 1; //command 3
P1_4 = 0;} //command 4
what code can be used so that the output will execute the commands randomly every time I run the program?
for example:
1st run
command 1,2,3,4 will be executed
2nd run
command 3,2,4,1 respectively will be executed
thanks for those who can help me
{P1_1 = 0; //command 1
P1_2 = 1; //command 2
P1_3 = 1; //command 3
P1_4 = 0;} //command 4
what code can be used so that the output will execute the commands randomly every time I run the program?
for example:
1st run
command 1,2,3,4 will be executed
2nd run
command 3,2,4,1 respectively will be executed
thanks for those who can help me