Java ThreadLocalRandom getRandomInteger()

Here you can find the source of getRandomInteger()

Description

get Random Integer

License

Apache License

Declaration

static Integer getRandomInteger() 

Method Source Code

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

import java.util.concurrent.ThreadLocalRandom;

public class Main {
    static Integer getRandomInteger() {
        return ThreadLocalRandom.current().nextInt(1, 1000);
    }// w w  w . ja va  2 s  .co m
}

Related

  1. getRandomInt()
  2. getRandomInt(int a, int b)
  3. getRandomInt(int limit)
  4. getRandomInt(int n)
  5. getRandomInt(int r)
  6. getRandomIntegerElement(List list)
  7. getRandomNumbers(Integer startNumber, Integer endNumber, Integer pageSize, Integer numNumbers)
  8. getRandomPassword()
  9. getRandomStr(int len)