Show / Hide Table of Contents

    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 Source

    RandomFrom<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
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)