|
Re: Math Quiz 9
Quote:
Originally Posted by Hitchhiker 42
What is a Monte Carlo simulation?
|
Aren beat me to it.
One-line AWK script:
BEGIN{for(i=1;i<100000;i++){sum+=sqrt((rand()-rand())^2+(rand()-rand())^2);}print sum/i;}
Last edited by Ether : 16-07-2016 at 17:29.
|