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
bubble sort
4c
Кошачья бойня
Print Longest String
Find merge point of two linkedlists - solution 1
Complex Number implementation using oops java
Геттеры и сеттеры для класса Dog
4th question
hextoepeen
Fibonnaci + Prime number combined