Summary
Select a random element created by the specified list function.
- Namespace
- Faker
.Extensions - Containing Type
- EnumerableExtensions
Syntax
public static TResult Random<TResult>(this IEnumerable<Func<TResult>> list)
Type Parameters
| Name | Description |
|---|---|
| TResult | The type of the result. |
Parameters
| Name | Type | Description |
|---|---|---|
| list | IEnumerable |
The list. |
Return Value
| Type | Description |
|---|---|
| TResult | The selected element from the Enumerable list. |