Created
July 7, 2014 12:42
-
-
Save huberflores/3ad520268e04bae0fe93 to your computer and use it in GitHub Desktop.
Quick random example 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
import java.util.*; | |
/* | |
* @author Huber Flores | |
*/ | |
public class RandomDemo { | |
public static void main( String args[] ){ | |
Random randomNo= new Random(); | |
// check next int value | |
System.out.println("Next value: " + randomNo.nextInt(10000)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment