concept arbitrary value in category f#

appears as: rbitrary values, Arbitrary value
Get Programming with F#: A guide for .NET developers

This is an excerpt from Manning's book Get Programming with F#: A guide for .NET developers.

This is particularly useful when you want to pull out only a certain section of a tuple, and it’s better than assigning it to arbitrary values such as x or y. The underscore is a symbol in F# that tells the type system (and the developer) that you explicitly don’t want to use this value. You’ll also see in the coming lessons that wildcards are useful when pattern matching, a form of conditional logic checking that replaces switch/case.

When guard clauses aren’t sufficient for your needs, you’ll need to create a custom generator. A generator allows you to specify a certain type of data, such as chars or strings, which then map into arbitrary values that FsCheck can run in its tests. FsCheck comes with many built-in arbitrary values in the FsCheck.Arb.Default module, such as the usual lists, sets, and numbers, and even things like nonempty strings and IP addresses. Let’s see how to create your own generator that forces all generated characters to be only letters. In conjunction with the built-in NonEmptyString, you can achieve exactly what you need.