Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 572 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 572 Bytes

Card probability simulation

Choose two cards from a deck without replacement.

What is the probability that you draw at least one diamond or exactly one 7?

This program calculates that probability.

Run

cargo run --release (num_experiments: u32) (num_threads: u8)

Cool crates

  • rand: random generation
  • rayon: parallelization
  • indicatif: progress bar visualization
  • num: fraction calculation (probably unnecessary)