Fork me on GitHub
  • API

    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 © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.