concept System in category f#
appears as: System, System

This is an excerpt from Manning's book Get Programming with F#: A guide for .NET developers.
The last point of interest from an FP point of view is how to handle randomness within the application. In the “real” application, you use the System.Random class to generate dice throws and pick Chance cards. But when testing and exploring, you want to have repeatable, deterministic results. Looking at the playTurn function, you can see the first two higher-order functions it takes in are to roll dice and pick a card. Both are simple functions that have no dependency on System.Random. By doing this, you can now easily test this function from a script as follows.