How can I randomize a number from the values below and then add that (and/or substitute) to the table. so now I've got a table1 with value $71, I would like to get a random number from first set and replace it with the current value in table1, and same thing for table2 (apart from use set2) please.
Set1: $3F, $06, $5B, $4F, $66, $6D, $7D, $07, $7F, $67, $77, $7C, $39, $5E, $79, $71
Set2: $BF, $86, $DB, $CF, $E6, $ED, $FD, $87, $FF, $E7, $F7, $FC, $B9, $DE, $F9, $F1
table1: .DB $71 ;left table2: .DB $F7 ;right