Java Random Int rand(int size)

Here you can find the source of rand(int size)

Description

rand

License

Open Source License

Declaration

public static int rand(int size) 

Method Source Code

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

public class Main {
    public static int rand(int size) {
        return (int) (size * Math.random());
    }/*from  w  ww. j av a2s. c om*/
}

Related

  1. getRandomInterests()
  2. getRandomIntFromRange(int min, int max)
  3. getRandomInts(int number)
  4. getRandomIntStr(int len)
  5. rand(int min, int max)
  6. randBetween(int min, int max)
  7. randInRangeInc(int min, int max)
  8. randInt()
  9. randInt()