Skip to content

luismendes070/SecureRandom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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);
}

}

Releases

No releases published

Packages

No packages published