Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String generateNonce() {
        int max = 9999999;
        int min = 123400;

        double rand = Math.random();

        //Return a string representation of a random value between the max and min
        return "" + (int) (min + (rand * ((max - min) + 1)));
    }
}