To get a random number between 0 and 18 I use the following routine :
BOM LDA RANDOM
STA TMP2 ;holds the random numer between 0 - 18
But this consumes way too much time because most of the times the random numer is too high...
Could somebody show me the right way to do this ?