I have generated a secure random number, and put its value into a byte. Here is my code.
SecureRandom ranGen = new SecureRandom(); byte[] rno = new byte[4];
I thought it would be:
byte b = (byte)255; int i = b &255;