Class RandomNumberGenerator
- java.lang.Object
-
- org.alindner.tools.common.random.generator.RandomNumberGenerator
-
- All Implemented Interfaces:
IRandomStringGenerator<BigInteger>
public class RandomNumberGenerator extends Object implements IRandomStringGenerator<BigInteger>
-
-
Constructor Summary
Constructors Constructor Description RandomNumberGenerator(Generator.ICharPool alphanum)RandomNumberGenerator(Generator.ICharPool alphanum, Random random)
-
-
-
Constructor Detail
-
RandomNumberGenerator
public RandomNumberGenerator(Generator.ICharPool alphanum)
-
RandomNumberGenerator
public RandomNumberGenerator(Generator.ICharPool alphanum, Random random)
-
-
Method Detail
-
next
public BigInteger next(int length)
Description copied from interface:IRandomStringGeneratorprovides a random string with lengthlength.- Specified by:
nextin interfaceIRandomStringGenerator<BigInteger>- Parameters:
length- length of string- Returns:
- random string
-
-