Skip to content

ethanchristensen01/card-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages