Extensions.RandomNext(IMemory, Int32, Int32, Nullable<Int32>) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
속성에서 임의 시드 및 값을 생성합니다. 값이 null이 아닌 경우 모의 임의 값 결과는 min + (value % (max - min)입니다. 그렇지 않으면 시드가 null이 아니면 임의의 시드가 수정됩니다.
public static int RandomNext(this AdaptiveExpressions.Memory.IMemory memory, int min, int max, int? seed = default);
static member RandomNext : AdaptiveExpressions.Memory.IMemory * int * int * Nullable<int> -> int
<Extension()>
Public Function RandomNext (memory As IMemory, min As Integer, max As Integer, Optional seed As Nullable(Of Integer) = Nothing) As Integer
매개 변수
- memory
- IMemory
메모리 상태입니다.
- min
- Int32
반환되는 난수의 하한(포함)입니다.
- max
- Int32
반환되는 난수의 상한(제외)입니다. max는 최소보다 크거나 같아야 합니다.
반환
임의 시드 및 값입니다.