Show / Hide Table of Contents

    Class RandomPicks

    Random selections of objects.

    Inheritance
    System.Object
    RandomPicks
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Randomized.Generators
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class RandomPicks

    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
    System.Random random
    System.Collections.Generic.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)