Android Random Int Create getRandomIntNum(int limit)

Here you can find the source of getRandomIntNum(int limit)

Description

get Random Int Num

Declaration

private static int getRandomIntNum(int limit) 

Method Source Code

//package com.java2s;

import java.util.Random;

public class Main {
    private static Random rm = new Random();

    private static int getRandomIntNum(int limit) {
        return rm.nextInt(limit);
    }//from  w  w w.j a v a 2 s .co m
}

Related

  1. nextRandInt(int max)
  2. nextRandInt(int min, int max)
  3. getRandom(int from, int to)
  4. getRandomId()
  5. getRandom(int from, int to)
  6. random(int min, int max)
  7. randomInt(int low, int high)
  8. generateSafePrimes(int size, int certainty, SecureRandom random)