Skip to content

Instantly share code, notes, and snippets.

@huberflores
Created July 7, 2014 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huberflores/3ad520268e04bae0fe93 to your computer and use it in GitHub Desktop.
Save huberflores/3ad520268e04bae0fe93 to your computer and use it in GitHub Desktop.
Quick random example in java
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