Java Random Int randomByteAsInt()

Here you can find the source of randomByteAsInt()

Description

random Byte As Int

License

Open Source License

Declaration

public static int randomByteAsInt() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int randomByteAsInt() {
        return (int) (Math.random() * 0xFF);
    }//from  ww w . j  a v a  2 s .  c om
}

Related

  1. randomArray(int min, int max, int n)
  2. randomBases(int n)
  3. randomBlock(byte[] block, int off, int len)
  4. randomByteArray(int length)
  5. randomByteArray(int size, byte from, byte to)
  6. randomBytes(int size)
  7. randomBytes(int size)
  8. randomCommon(int min, int max, int n)
  9. randomCommonStr(int min, int max, int n)