O.k, now i see... stupid french i am...


if you don't have HIGHBYTE and LOWBYTE function in standard PICBASIC, i suppose you'll be able to do it like this.

MyRandom VAR WORD
MyResult VAR BYTE

RANDOM MyRandom
MyRandom=Myrandom & $000F
MyResult = MyRandom