Java ThreadLocalRandom random()

Here you can find the source of random()

Description

random

License

Open Source License

Declaration

public static String random() 

Method Source Code

//package com.java2s;

import java.util.concurrent.ThreadLocalRandom;

public class Main {
    public static String random() {
        String str = "";
        for (int i = 0; i < 20; i++) {
            str += String.valueOf((ThreadLocalRandom.current().nextInt(0, 9)));
        }// www.  ja va  2s .co m
        return str;
    }
}

Related

  1. moveInRadius(double[] position, double radius)
  2. parseSeed(String seedString)
  3. rand(final Collection items)
  4. randInt(int min, int max)
  5. random()
  6. random()
  7. random(char lower, char upper, int length)
  8. random(double min, double max)
  9. random(int min, int max)