Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Random class in java

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        Random random = new Random();
        int randomNum = random.nextInt(100);
        System.out.println(randomNum);
     }
}
 
PREVIOUS NEXT
Tagged: #Random #class #java
ADD COMMENT
Topic
Name
3+1 =