Random number generator (device): Difference between revisions

Content added Content deleted
m (→‎{{header|C}}: Changed 'sizeof(uint32_t)' to 'sizeof v'. They are same; 'sizeof v' is just shorter.)
Line 182: Line 182:


Note: this assumes that J is running on linux.
Note: this assumes that J is running on linux.

=={{header|Java}}==
<lang java>import java.security.SecureRandom;

public class RandomExample {
public static void main(String[] args) {
SecureRandom rng = new SecureRandom();

/* Prints a random signed 32-bit integer. */
System.out.println(rng.nextInt());
}
}</lang>


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==