Hi I have been trying to generate consecutive numbers from 0 to 16 without a for() (I can't use the for because the hardware I'm working with doesn't allow me to work with it, it's not possible). The thing is that I saved some positions in an array, and I want to call them in order.
a[0] a[1]...a[n] to be able to have a consecutive positions for the hardware but I haven't been able to call them right because if I use a for() inside the function() doesn't allow me to run. I tried using Sleep(), delay() and wait() functions when I worked with for() but didn't work either. Help me please. Thank you so much for your answer
pd: I used a rand() function and it works good so I want to know if maybe is there a way to get consecutive numbers from a rand() function???????
try it but it didn't work
is there any way to use the rand() function to generate numbers from 0 to 9 but in ascending order? or maybe a function capable of generate numbers from 0 to 9 but in ascending order without using for(0 while or if?