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

cn.binarywang.tools.generator.base.GenericGenerator Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package cn.binarywang.tools.generator.base;

import java.util.Date;
import java.util.Random;

public abstract class GenericGenerator {
    public abstract String generate();

    private static Random random = null;

    protected Random getRandomInstance() {
        if (random == null) {
            random = new Random(new Date().getTime());
        }

        return random;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy