ArrayExtensions.

Random<TResult>(TResult[]) Method

Summary

Select a random element from the array.
Namespace
Faker.Extensions
Containing Type
ArrayExtensions

Syntax

public static TResult Random<TResult>(this TResult[] list)

Type Parameters

Name Description
TResult The type of the result.

Parameters

Name Type Description
list TResult[] The list.

Return Value

Type Description
TResult The selected element from the array.
GitHub