Code example for Random

Methods: setSeed

0
 
        return image;
    } 
 
    public void setSeed(long seed) {
        mRNG.setSeed(seed);
    } 
 
    protected static void log(String tag, String message) {
        if (DEBUG) {
            Log.i(tag, message);
        } 
    } 
 
    protected int pickRandomStart(int total, int max) {
        if (max >= total) {
            return -1; 
        } else { 
            return (mRNG.nextInt() % (total - max)) - 1;
        } 
    }