Skip to content

azrazalea/birthday-paradox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Birthday Paradox - Monte Carlo simulations

  • sample-size: 23
  • probability: 50.20
language iterations/sec image-size(MB) year solution type has repl
1 c 3,318,584 130 1972 imperative
2 c++ 3,177,966 193 1985 imperative
3 nim 3,125,000 631 2008 imperative
4 crystal 2,777,777 559 2014 imperative
5 rust 2,500,000 1351 2010 imperative x
6 vb.net 2,184,466 1781 2001 imperative
7 c# 2,142,857 710 2000 imperative x
8 go 2,045,454 862 2009 imperative
9 d 1,902,173 840 2001 imperative
10 coffeescript 1,470,588 170 2009 imperative
11 vala 1,428,571 438 2006 imperative
12 kotlin 1,398,601 404 2011 imperative x
13 pascal 1,369,863 79 1970 imperative
14 java 1,348,920 467 1995 imperative x
15 javascript 1,219,512 168 1995 imperative x
16 dart 1,206,896 733 2011 imperative x
17 php 630,136 423 1995 imperative x
18 groovy 588,235 327 2003 imperative
19 v 416,666 755 2019 imperative
20 ocaml 416,666 605 1996 functional x
21 common-lisp 416,666 900 1984 lisp x
22 reason 400,000 3829 2020 functional
23 haskell 370,370 2406 1990 functional x
24 hack 308,641 706 2014 imperative
25 gambas 224,719 802 1999 imperative
26 julia 202,020 486 2012 scientific x
27 ruby 193,277 851 1995 imperative x
28 rescript 171,232 428 2020 functional
29 reason (bs) 155,038 349 2016 functional
30 python3 148,305 886 1990 imperative x
31 scala 146,341 2580 2004 functional x
32 racket 144,230 931 1995 lisp x
33 lua 128,205 50 1993 imperative x
34 python 121,951 902 1990 imperative x
35 perl 120,689 860 1987 imperative
36 erlang 120,000 1280 1986 functional x
37 f# 113,636 729 2005 functional x
38 elixir 102,941 1290 2011 functional x
39 r 101,351 763 1993 scientific x
40 clojure 66,666 666 2007 lisp x
41 smalltalk 30,534 671 1972 functional x
42 swift 28,169 2160 2014 imperative x
43 octave 15,789 853 1988 scientific x
44 scheme 4,123 78 1975 lisp x
45 perl6 3,034 458 2015 imperative x
46 bash 2,868 9 1989 imperative x
47 powershell 318 325 2006 imperative x
48 fish 136 19 2005 imperative x

thanks Anthony Robinson for the tip about randint and random speed in python

About

Monte Carlo Simulations in different languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 23.5%
  • Dockerfile 7.1%
  • Reason 4.9%
  • C# 4.5%
  • Swift 3.8%
  • Elixir 3.6%
  • Other 52.6%