model.domain.util.simple.token.SimpleTokenGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abstract-domain Show documentation
Show all versions of abstract-domain Show documentation
A bunch of classes that help developers building their domain object classes.
package model.domain.util.simple.token;
import java.util.Random;
public class SimpleTokenGenerator {
public static String generateToken(int quantity) {
String number = "";
Random generator = new Random();
for (int i = 0; i < quantity; i++) {
number = number + String.valueOf(generator.nextInt(10));
}
return number;
}
}