2013-04-10 23:57:08 -07:00
|
|
|
import java.security.SecureRandom;
|
|
|
|
|
|
|
|
|
|
public class RandomExample {
|
2014-01-17 05:32:22 +00:00
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SecureRandom rng = new SecureRandom();
|
2013-04-10 23:57:08 -07:00
|
|
|
|
2014-01-17 05:32:22 +00:00
|
|
|
/* Prints a random signed 32-bit integer. */
|
|
|
|
|
System.out.println(rng.nextInt());
|
|
|
|
|
}
|
2013-04-10 23:57:08 -07:00
|
|
|
}
|