All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.domain.util.simple.token.SimpleTokenGenerator Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy