import java.security.SecureRandom;
import org.apache.commons.math3.complex.Complex;
public class ComplexRandom {
// Secure random number generator
private static final SecureRandom RANDOM = new SecureRandom();
public static void main(String[] args) {
// Generate a complex random number
Complex complex = new Complex(RANDOM.nextDouble(), RANDOM.nextDouble() * 2 - 1);
System.out.println(complex);
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
luismendes070/SecureRandom
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published