If I recall correctly, I used to use the VBL softswitch to get a pseudo random number. I would change line 20: 20 CALL 768 where the $300 address would read the VBL softswitch, perform several arithmetic operations with it and the $4E..$4F zero page values. antoine