Class RandomPicks
Random selections of objects.
Inheritance
System.Object
RandomPicks
Namespace: Lucene.Net.Randomized.Generators
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class RandomPicks : object
Methods
| Improve this Doc View SourceRandomFrom<T>(Random, ICollection<T>)
Pick a random object from the collection
.
Declaration
public static T RandomFrom<T>(Random random, ICollection<T> collection)
Parameters
Type | Name | Description |
---|---|---|
Random | random | |
ICollection<T> | collection |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |