Skip to content

M_CodeJam_Collections_Sequence_Random

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

Sequence.Random Method (Int32)

Creates infinite sequence of random int numbers;

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static IEnumerable<int> Random(
	int maxValue = 2147483647
)

VB

Public Shared Function Random ( 
	Optional maxValue As Integer = 2147483647
) As IEnumerable(Of Integer)

F#

static member Random : 
        ?maxValue : int 
(* Defaults:
        let _maxValue = defaultArg maxValue 2147483647
*)
-> IEnumerable<int> 

Parameters

 

maxValue (Optional)
Type: System.Int32
The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Return Value

Type: IEnumerable(Int32)
Infinite random sequence.

See Also

Reference

Sequence Class
Random Overload
CodeJam.Collections Namespace

Clone this wiki locally