create a separate function for random 8 bit values
create a separate function for random 16 bit numbers