Skip to content

Commit 8886a66

Browse files
committed
Second implementation, with Fisher-Yates on bits
❯ time .stack-work/install/x86_64-osx/lts-13.21/8.6.5/bin/bingo-sim 100000 Trials: 100000 Bingos: 3529 Hit rate: 0.03529 0.71s user 0.02s system 98% cpu 0.738 total
1 parent 994481b commit 8886a66

File tree

4 files changed

+211
-29
lines changed

4 files changed

+211
-29
lines changed

bingo-sim.cabal

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: b0e67a2eb9d86d2863fe5c9d113188176f9b2e23ff22eb6072d87707b03a902b
7+
-- hash: 26378589030ced4d8f54066cd640d122b18b9474d2082849b5a315cade4a9319
88

99
name: bingo-sim
10-
version: 0.0.1.0
10+
version: 0.0.2.0
1111
synopsis: A small playground to learn about profiling Haskell.
1212

1313
description: This package simulates the probability of scoring a bingo at a particular children's carnival game. I've been using it to learn how profiling in Haskell works.
@@ -34,7 +34,6 @@ library
3434
build-depends:
3535
base >=4.7 && <5
3636
, random
37-
, random-shuffle
3837
default-language: Haskell2010
3938

4039
executable bingo-sim
@@ -48,5 +47,4 @@ executable bingo-sim
4847
base >=4.7 && <5
4948
, bingo-sim
5049
, random
51-
, random-shuffle
5250
default-language: Haskell2010

package.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: bingo-sim
2-
version: 0.0.1.0
2+
version: 0.0.2.0
33
homepage: https://github.com/jez/bingo-sim
44
author: Jake Zimmerman
55
maintainer: zimmerman.jake@gmail.com
@@ -29,7 +29,6 @@ ghc-options:
2929
dependencies:
3030
- base >=4.7 && <5
3131
- random
32-
- random-shuffle
3332

3433
library:
3534
source-dirs: src

0 commit comments

Comments
 (0)