Anonymous user
Monty Hall problem: Difference between revisions
→{{header|Dart}}
(→{{header|D}}: added Dart version) |
|||
Line 683:
=={{header|Dart}}==
The class Game attempts to hide the implementation as much as possible, the play() function does not use any specifics of the implementation.
<lang dart>int rand(int max) => (Math.random()*max).toInt();
|