12 lines
299 B
Java
12 lines
299 B
Java
|
import java.lang.Math;
|
||
|
import java.util.Random;
|
||
|
|
||
|
public class Aléatoire{
|
||
|
public static void main(String[] args) {
|
||
|
double nb1;
|
||
|
nb1 = Math.random();
|
||
|
Random nb2 = new Random();
|
||
|
System.out.println("random propose : "+ nb1);
|
||
|
System.out.println("nextDouble propose : "+ nb2.nextDouble());
|
||
|
}
|
||
|
}
|