Java Random Number createRandomNumber(int index)

Here you can find the source of createRandomNumber(int index)

Description

create Random Number

License

Open Source License

Declaration

public static int createRandomNumber(int index) 

Method Source Code

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

public class Main {
    public static int createRandomNumber(int index) {
        int value = (int) (Math.random() * index + 1);
        return value;
    }/*from   w ww  . j  ava2  s . c  om*/
}

Related

  1. createParameters(int numberOfParameters)
  2. createRandomFilename()
  3. createRandomHexNumber(int length)
  4. createRandomNumber()
  5. distinctInts(int from, int to, int number)
  6. generateRandomNum(int i)
  7. generateRandomNum(int passNumber)
  8. generateRandomNumb(int randomSize, int range)