A while back I had issues generating random numbers. Each time a pushbutton was pushed I needed a random number which very often repeated the same sequence. I did the following. It was also checking a port for a button push while generating numbers and did a specific task depending on the number.
START:
LET NUMBER = (NUMBER + 1)
IF NUMBER >=250 Then LET NUMBER = 0
GOTO START




Bookmarks