Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Edna Garcia
//Title of this code //'main' method must be in a class 'Rextester'. import java.util.*; import java.lang.*; import java.util.Random; class Rextester { public static void main (string args []){ // 1:lanzamientos; m: fr. muestreo int l = 10000000, m = 5000; // f: favorables; b=0: C; b=l; x double fr; // fr: frec. rel Random g = new Random (); for (int i=0; i<(l/m);1++) { for(int j=0;j<m;j++) { r = g.nextInt (2) ; if (r == b) f++; } n+=m; fr = (double)f/n; System.out.println(f + "/" + n + "\t=\t" + fr); } } } }
run
|
edit
|
history
|
help
0
Alumnos Java con Input
OBF-7 PR
1.6
a+b
Java
OurDate.java
different ways to add parenthesis leetcode #241
Matcher Example (not my)
Решето Эратосфена
end of bala session