Browsing all posts in "util".

Generate Random String and Number

In this moment we try to use java.lang.math and java.util.Random class
With this class we can make script code to generate String and number
Source code 1:
public class random1 {
public static short random() {
return (short)(Math.floor(Math.random() * 100) + 0);
}
public static void main(String[] args) {
System.out.println(random());
[...]