Java ThreadLocalRandom randomWorld()

Here you can find the source of randomWorld()

Description

random World

License

Open Source License

Declaration

public static int randomWorld() 

Method Source Code

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

import java.util.concurrent.ThreadLocalRandom;

public class Main {
    public static int randomWorld() {
        return 1 + ThreadLocalRandom.current().nextInt(10000);
    }/* w w w . ja  v a 2s  .c o  m*/
}

Related

  1. randomString()
  2. RandomString(int length)
  3. randomString(int minLength, int maxLength)
  4. randomString(List strings)
  5. randomStringArray(int arrayLength, int stringLength)
  6. randomWorld()
  7. shuffle(final T[] array)
  8. shuffle(T[] arr)
  9. shuffle(T[] array)