Java Random Byte generateRandomByte()

Here you can find the source of generateRandomByte()

Description

generate Random Byte

License

Open Source License

Declaration

public static final byte generateRandomByte() 

Method Source Code

//package com.java2s;

public class Main {

    public static final byte generateRandomByte() {
        return (byte) (Math.random() * 0xFF);
    }/* ww  w  .  ja v  a2  s.  c  o m*/
}

Related

  1. createRandomByte()
  2. rand(int bit)
  3. rand(int lbound, int ubound)
  4. rand(int lo, int hi)
  5. rand(int lo, int hi)