Skip to content

M_CodeJam_Collections_Sequence_Random_2

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

Sequence.Random Method (Int32, Int32, 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 minValue,
	int maxValue,
	int seed
)

VB

Public Shared Function Random ( 
	minValue As Integer,
	maxValue As Integer,
	seed As Integer
) As IEnumerable(Of Integer)

F#

static member Random : 
        minValue : int * 
        maxValue : int * 
        seed : int -> IEnumerable<int> 

Parameters

 

minValue
Type: System.Int32
The inclusive lower bound of the random number returned.
maxValue
Type: System.Int32
The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.
seed
Type: System.Int32
A number used to calculate a starting value for the pseudo-random number sequence. If a negative number is specified, the absolute value of the number is used.

Return Value

Type: IEnumerable(Int32)
Infinite random sequence.

See Also

Reference

Sequence Class
Random Overload
CodeJam.Collections Namespace

Clone this wiki locally