Java Random Int getIntRandomValue(int paramInt)

Here you can find the source of getIntRandomValue(int paramInt)

Description

get Int Random Value

License

Apache License

Declaration

public static int getIntRandomValue(int paramInt) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Random;

public class Main {
    public static int getIntRandomValue(int paramInt) {
        if (paramInt == 0) {
            return paramInt;
        }/*  w w w  .  j a va2 s .  c o  m*/
        return new Random().nextInt(paramInt);
    }
}

Related

  1. generateRandomNoInRange(int max, int min)
  2. generateRandomSeed(int min, int max)
  3. generateRandomTargetId(final String uniqueId, final int count)
  4. getIntRandom(int i)
  5. getIntRandomReqId()
  6. getPositiveInt()
  7. getRandom(int c)
  8. getRandomInt()
  9. getRandomInt()