APL/APL2.1/Controle Machine/horville_apl21/Aléatoire/Aléatoire.java

12 lines
299 B
Java
Raw Normal View History

2022-06-01 12:19:24 +02:00
//HORVILLE Ewen Groupe N°4
import java.util.*;
public class Aléatoire {
public static void main(String[] args) {
Random r = new Random();
System.out.println("random propose :\t" + Math.random());
System.out.println("nextDouble propose :\t" + r.nextDouble());
}
}