Tag Archives: simulation

Make a dice-rolling simulation in C#

This example performs a simulation of rolling two six-sided dice. It’s related to my book Interview Puzzles Dissected, which includes several examples that involve rolling dice. When you enter a number of trials and click Roll, the program uses the … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , | Leave a comment

Simulate mosquito populations in C#

A team of researchers at the Imperial College London are trying a new approach to mosquito control. They’ve genetically modified male mosquitoes to produce offspring who are 95% male. After a few generations, the number of females in the population … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , , , , , , | 1 Comment