xargs -a <(shuf -i 0-255 -n 1024) -n 30 -d '\n' sed -i 's/^\(.\)/ig; s/^\([0-9]\)$/0\1/g'

This command will take the output of the shuf command (which randomly shuffles numbers between 0 and 255) and pass it to xargs. Xargs will then take 30 of these numbers at a time and pass them to sed, which will insert an 'i' at the beginning of each number and add a 0 to any single-digit numbers.
xargs -a <(shuf -i 0-255 -n 1024) -n 30 -d '\n' sed -i 's/^\(.)/ig; s/^\([0-9]\)$/0\1/g'