Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RandomBytes

    Random byte sequence generators.

    Inheritance
    System.Object
    RandomBytes
    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 RandomBytes

    Methods

    | Improve this Doc View Source

    RandomBytesOfLength(Random, Int32)

    Declaration
    public static byte[] RandomBytesOfLength(Random r, int length)
    Parameters
    Type Name Description
    System.Random r

    Random generator.

    System.Int32 length

    The length of the byte array. Can be zero.

    Returns
    Type Description
    System.Byte[]

    Returns a byte array with random content.

    | Improve this Doc View Source

    RandomBytesOfLengthBetween(Random, Int32, Int32)

    Declaration
    public static byte[] RandomBytesOfLengthBetween(Random r, int minLength, int maxLength)
    Parameters
    Type Name Description
    System.Random r

    Random generator.

    System.Int32 minLength

    The minimum length of the byte array. Can be zero.

    System.Int32 maxLength

    The maximum length of the byte array. Can be zero.

    Returns
    Type Description
    System.Byte[]

    Returns a byte array with random content.

    • 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.