Package com.github.javafaker.service
Class RandomService
- java.lang.Object
-
- com.github.javafaker.service.RandomService
-
public class RandomService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RandomService()Uses a default shared random.RandomService(java.util.Random random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringhex()java.lang.Stringhex(int length)java.lang.BooleannextBoolean()doublenextDouble()intnextInt(int n)java.lang.IntegernextInt(int min, int max)longnextLong()longnextLong(long n)
-
-
-
Method Detail
-
nextInt
public int nextInt(int n)
-
nextLong
public long nextLong()
-
nextLong
public long nextLong(long n)
-
nextDouble
public double nextDouble()
-
nextBoolean
public java.lang.Boolean nextBoolean()
-
nextInt
public java.lang.Integer nextInt(int min, int max)
-
hex
public java.lang.String hex()
-
hex
public java.lang.String hex(int length)
-
-