Java ThreadLocalRandom randomFishType()

Here you can find the source of randomFishType()

Description

random Fish Type

License

Open Source License

Declaration

public static long randomFishType() 

Method Source Code

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

import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;

public class Main {
    public static final Random random = ThreadLocalRandom.current();

    public static long randomFishType() {
        return random.nextInt(4);
    }/*from   w w  w . jav  a  2s.  c o  m*/
}

Related

  1. randomChar()
  2. randomDelay()
  3. randomDouble(final double min, final double max)
  4. randomElement(Collection c, int n, boolean unique)
  5. randomEnum(Class clazz)
  6. randomFixedChars(int size, List pool)
  7. randomIndexs(int count, int bound)
  8. randomInRange(int min, int max)
  9. randomInt()