push
This commit is contained in:
3
DEV2.1/CTRLBLANC/Exo1/Aléatoire
Normal file
3
DEV2.1/CTRLBLANC/Exo1/Aléatoire
Normal file
@@ -0,0 +1,3 @@
|
||||
public class Aléatoire{
|
||||
|
||||
}
|
BIN
DEV2.1/CTRLBLANC/Exo1/Aléatoire.class
Normal file
BIN
DEV2.1/CTRLBLANC/Exo1/Aléatoire.class
Normal file
Binary file not shown.
12
DEV2.1/CTRLBLANC/Exo1/Aléatoire.java
Normal file
12
DEV2.1/CTRLBLANC/Exo1/Aléatoire.java
Normal file
@@ -0,0 +1,12 @@
|
||||
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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user