次の方法で共有


Extensions.RandomNext(IMemory, Int32, Int32, Nullable<Int32>) メソッド

定義

プロパティからランダムシードと値を生成します。 value が null でない場合、モックランダム値の結果は min + (値 % (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 は min 以上である必要があります。

seed
Nullable<Int32>

ユーザー シード。

戻り値

ランダムシードと値。

適用対象