In reply to Ian Wakeling.

PS: Your DATA step code will be easier to write and read if you use
R = rand("integer", 0, 255);