Created
January 7, 2019 04:34
-
-
Save RashidJorvee/18f768cc38fcbbae7fd77a9a07a068e6 to your computer and use it in GitHub Desktop.
How to generate three digits random number in java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rashid.jorvee; | |
import java.lang.Math; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class GenerateThreeDigitsRandomNumber { | |
public static void main(String[] args) { | |
int random = (int )(Math.random()* 900 + 000); | |
System.out.println(random); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment