Java ThreadLocalRandom getRandomValue(String prefix, long maxValue)

Here you can find the source of getRandomValue(String prefix, long maxValue)

Description

get Random Value

License

Open Source License

Declaration

public static String getRandomValue(String prefix, long maxValue) 

Method Source Code

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

import java.util.concurrent.ThreadLocalRandom;

public class Main {
    public static String getRandomValue(String prefix, long maxValue) {
        long randomLongValue = ThreadLocalRandom.current().nextLong(maxValue);
        return prefix + randomLongValue;
    }//ww w .ja  v a 2  s . co  m
}

Related

  1. getRandomNumbers(Integer startNumber, Integer endNumber, Integer pageSize, Integer numNumbers)
  2. getRandomPassword()
  3. getRandomStr(int len)
  4. getRandomString(int length)
  5. getRandomTarget(List targets)
  6. getTempPersistFileName(String baseFileName)
  7. getThreadLocalRandom()
  8. isRandomOccurrence(int pcLikelihood)
  9. moveInRadius(double[] position, double radius)