Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String randNum(long dig, long len) {
        String number;
        int num = (int) Math.abs((Math.round(Math.random() * dig) + len));
        number = Integer.toString(num);
        return number;
    }
}