https://github.com/luismendes070/securerandom
https://github.com/luismendes070/securerandom
apache-commons complex-numbers java random securerandom
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/luismendes070/securerandom
- Owner: luismendes070
- License: apache-2.0
- Created: 2022-12-21T18:05:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T18:06:10.000Z (over 3 years ago)
- Last Synced: 2025-12-26T05:06:13.585Z (6 months ago)
- Topics: apache-commons, complex-numbers, java, random, securerandom
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SecureRandom
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);
}
}