adoble / monty-hall

A simple RUST program to simulate the Monty Hall problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple RUST program to demonstrate the Monty Hall problem.

This was done as an exercise whilst I was learning RUST, so don't expect too much. Of course, if you have any suggestions to improve my code then please flag it as a issue. Suggestions as to idiomatic RUST styles are also very welcome.

To run use:

cargo run 

This runs a simulation of 10 000 games.

To restrict the number of games (for instance to 100) use:

cargo run 100 

About

A simple RUST program to simulate the Monty Hall problem


Languages

Language:Rust 100.0%