Method RandomFrom
RandomFrom<T>(Random, ISet<T>)
Declaration
public static T RandomFrom<T>(Random rand, ISet<T> set)
Parameters
Type | Name | Description |
---|---|---|
Random | rand | |
ISet<T> | set |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
RandomFrom<T>(Random, IList<T>)
Declaration
public static T RandomFrom<T>(Random rand, IList<T> set)
Parameters
Type | Name | Description |
---|---|---|
Random | rand | |
IList<T> | set |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |