• APIブラウザ
  • 設計思想
Show / Hide Table of Contents
  • ExapisSOP
    • AppWorker
    • ContextEventArgs
    • HostRunner
    • IConfiguration
    • IContext
    • IPipeline
    • IProcess
    • IProcess<TParam, TResult>
    • IService
    • TerminationEventArgs
    • TerminationException
    • TerminationReason
    • UnhandledErrorEventArgs
    • VersionInfo
  • ExapisSOP.Binary
    • DataValue
  • ExapisSOP.Core
    • ConfigurationExtensions
    • ContextExtensions
    • CustomPipelineProcess<TParam, TResult>
    • ImmutablePipeline
    • Pipeline
    • PipelineExtensions
    • PipelineExtensions.ExceptionHandler
    • PipelineExtensions.ExceptionHandler<TParam, TResult>
    • PipelineExtensions.LoggingProcess
    • PipelineExtensions.NextProcessFunc
    • PipelineExtensions.ProcessFunc
    • PipelineExtensions.ProcessFunc<TParam, TResult>
    • PipelineExtensions.ProcessFuncWrapper
    • PipelineExtensions.ProcessFuncWrapper<TParam, TResult>
  • ExapisSOP.Globalization
    • EnglishErrorReportBuilder
    • JapaneseErrorReportBuilder
  • ExapisSOP.IO
    • CachedStream
    • DefaultPath
    • FileSystemServiceOptions
    • FileSystemServiceOptionsExtensions
    • IFileSystemService
    • InvalidPathFormatException
    • IPathList
    • Paths
    • PathString
    • PathStringFormatter
  • ExapisSOP.IO.Logging
    • ConsoleLogger
    • DefaultErrorDetailProvider
    • ErrorReportBuilder
    • ExceptionRecord
    • HResultDetailProvider
    • ICustomErrorDetailProvider
    • ILogFile
    • ILoggable
    • ILogger
    • ILoggingSystemService
    • LogData
    • LogFile
    • LogFileType
    • Logger
    • LoggerExtension
    • LoggingSystemServiceOptions
    • LoggingSystemServiceOptions.CreateLogFile
    • LogLevel
    • LongMessageRecord
    • MultipleLogger
    • OutputStreamLogger
  • ExapisSOP.IO.Settings
    • CustomSettings
    • DataStore
    • DefaultSettings
    • EnvironmentSettings
    • ISettingsSystemService
    • OptimizedSettings
    • SettingsSystemServiceOptions
    • SettingsSystemServiceOptions.ConfirmVersionInfo
    • SettingsSystemServiceOptions.GetVersionInfo
  • ExapisSOP.IO.Settings.CommandLine
    • CommandLineConverter
    • CommandLineParser
    • CommandLineServiceOptions
    • CommandLineServiceOptions.CreateConverterMappingTable
    • FileNameList
    • IArgumentConverter
    • IArgumentConverter<T>
    • ICommandLineService
    • ManualAttribute
    • Option
    • Option.Value
    • OptionAttribute
    • Switch
    • SwitchAttribute
  • ExapisSOP.NativeWrapper
    • INativeCaller
    • WinAPI
  • ExapisSOP.NativeWrapper.Windows
    • Kernel32
  • ExapisSOP.Numerics
    • CryptionRandom
    • IRandom
    • LinearCongruentialGenerator
    • RandomExtension
    • SerializableRandom
    • SystemRandom
    • Xorshift
    • Xorshift2
  • ExapisSOP.Text
    • SimpleEncoding
    • SimpleString
  • ExapisSOP.Utils
    • ArrayExtensions
    • ConsoleUtil
    • DisposableBase
    • IAwaitable<T>
    • IAwaiter<T>
    • IUtilityService
    • SecureStringExtensions
    • SerializationInfoExtensions
    • StringExtensions
    • StringUtil
    • UtilityConfigurationExtensions
    • UtilityContextExtensions

RandomExtension クラス

IRandomの機能を拡張します。 このクラスは静的です。

継承
System.Object
RandomExtension
継承されたメンバー
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()
名前空間: ExapisSOP.Numerics
アセンブリ: ExapisSOP.Utils.dll
構文
public static class RandomExtension

メソッド 一覧

| 編集/提案 ソースを表示

NextDecimal(IRandom)

10進数数値を生成します。

宣言
public static decimal NextDecimal(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.Decimal

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextDecimal(IRandom, Decimal)

最大値を指定して10進数数値を生成します。

宣言
public static decimal NextDecimal(this IRandom random, decimal max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Decimal max

最大値です。

戻り値
型 説明
System.Decimal

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextDecimal(IRandom, Decimal, Decimal)

最大値と最小値を指定して10進数数値を生成します。

宣言
public static decimal NextDecimal(this IRandom random, decimal max, decimal min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Decimal max

最大値です。

System.Decimal min

最小値です。

戻り値
型 説明
System.Decimal

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextDouble(IRandom, Double)

最大値を指定して単精度浮動小数点数値を生成します。

宣言
public static double NextDouble(this IRandom random, double max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Double max

最大値です。

戻り値
型 説明
System.Double

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextDouble(IRandom, Double, Double)

最大値と最小値を指定して単精度浮動小数点数値を生成します。

宣言
public static double NextDouble(this IRandom random, double max, double min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Double max

最大値です。

System.Double min

最小値です。

戻り値
型 説明
System.Double

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSingle(IRandom)

単精度浮動小数点数値を0~1の範囲で生成します。

宣言
public static float NextSingle(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.Single

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextSingle(IRandom, Single)

最大値を指定して単精度浮動小数点数値を生成します。

宣言
public static float NextSingle(this IRandom random, float max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Single max

最大値です。

戻り値
型 説明
System.Single

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSingle(IRandom, Single, Single)

最大値と最小値を指定して単精度浮動小数点数値を生成します。

宣言
public static float NextSingle(this IRandom random, float max, float min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Single max

最大値です。

System.Single min

最小値です。

戻り値
型 説明
System.Single

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt16(IRandom)

16ビット符号付き整数値を生成します。

宣言
public static short NextSInt16(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.Int16

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextSInt16(IRandom, Int16)

最大値を指定して16ビット符号付き整数値を生成します。

宣言
public static short NextSInt16(this IRandom random, short max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int16 max

最大値です。

戻り値
型 説明
System.Int16

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt16(IRandom, Int16, Int16)

最大値と最小値を指定して16ビット符号付き整数値を生成します。

宣言
public static short NextSInt16(this IRandom random, short max, short min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int16 max

最大値です。

System.Int16 min

最小値です。

戻り値
型 説明
System.Int16

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt32(IRandom)

32ビット符号付き整数値を生成します。

宣言
public static int NextSInt32(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.Int32

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextSInt32(IRandom, Int32)

最大値を指定して32ビット符号付き整数値を生成します。

宣言
public static int NextSInt32(this IRandom random, int max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int32 max

最大値です。

戻り値
型 説明
System.Int32

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt32(IRandom, Int32, Int32)

最大値と最小値を指定して32ビット符号付き整数値を生成します。

宣言
public static int NextSInt32(this IRandom random, int max, int min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int32 max

最大値です。

System.Int32 min

最小値です。

戻り値
型 説明
System.Int32

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt64(IRandom, Int64)

最大値を指定して64ビット符号付き整数値を生成します。

宣言
public static long NextSInt64(this IRandom random, long max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int64 max

最大値です。

戻り値
型 説明
System.Int64

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt64(IRandom, Int64, Int64)

最大値と最小値を指定して64ビット符号付き整数値を生成します。

宣言
public static long NextSInt64(this IRandom random, long max, long min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Int64 max

最大値です。

System.Int64 min

最小値です。

戻り値
型 説明
System.Int64

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt8(IRandom)

8ビット符号付き整数値を生成します。

宣言
public static sbyte NextSInt8(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.SByte

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextSInt8(IRandom, SByte)

最大値を指定して8ビット符号付き整数値を生成します。

宣言
public static sbyte NextSInt8(this IRandom random, sbyte max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.SByte max

最大値です。

戻り値
型 説明
System.SByte

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextSInt8(IRandom, SByte, SByte)

最大値と最小値を指定して8ビット符号付き整数値を生成します。

宣言
public static sbyte NextSInt8(this IRandom random, sbyte max, sbyte min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.SByte max

最大値です。

System.SByte min

最小値です。

戻り値
型 説明
System.SByte

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt16(IRandom)

16ビット符号無し整数値を生成します。

宣言
public static ushort NextUInt16(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.UInt16

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextUInt16(IRandom, UInt16)

最大値を指定して16ビット符号無し整数値を生成します。

宣言
public static ushort NextUInt16(this IRandom random, ushort max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt16 max

最大値です。

戻り値
型 説明
System.UInt16

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt16(IRandom, UInt16, UInt16)

最大値と最小値を指定して16ビット符号無し整数値を生成します。

宣言
public static ushort NextUInt16(this IRandom random, ushort max, ushort min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt16 max

最大値です。

System.UInt16 min

最小値です。

戻り値
型 説明
System.UInt16

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt32(IRandom)

32ビット符号無し整数値を生成します。

宣言
public static uint NextUInt32(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.UInt32

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextUInt32(IRandom, UInt32)

最大値を指定して32ビット符号無し整数値を生成します。

宣言
public static uint NextUInt32(this IRandom random, uint max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt32 max

最大値です。

戻り値
型 説明
System.UInt32

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt32(IRandom, UInt32, UInt32)

最大値と最小値を指定して32ビット符号無し整数値を生成します。

宣言
public static uint NextUInt32(this IRandom random, uint max, uint min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt32 max

最大値です。

System.UInt32 min

最小値です。

戻り値
型 説明
System.UInt32

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt64(IRandom)

64ビット符号無し整数値を生成します。

宣言
public static ulong NextUInt64(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.UInt64

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextUInt64(IRandom, UInt64)

最大値を指定して64ビット符号無し整数値を生成します。

宣言
public static ulong NextUInt64(this IRandom random, ulong max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt64 max

最大値です。

戻り値
型 説明
System.UInt64

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt64(IRandom, UInt64, UInt64)

最大値と最小値を指定して64ビット符号無し整数値を生成します。

宣言
public static ulong NextUInt64(this IRandom random, ulong max, ulong min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.UInt64 max

最大値です。

System.UInt64 min

最小値です。

戻り値
型 説明
System.UInt64

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt8(IRandom)

8ビット符号無し整数値を生成します。

宣言
public static byte NextUInt8(this IRandom random)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

戻り値
型 説明
System.Byte

結果の分からない値を返します。

| 編集/提案 ソースを表示

NextUInt8(IRandom, Byte)

最大値を指定して8ビット符号無し整数値を生成します。

宣言
public static byte NextUInt8(this IRandom random, byte max)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Byte max

最大値です。

戻り値
型 説明
System.Byte

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
| 編集/提案 ソースを表示

NextUInt8(IRandom, Byte, Byte)

最大値と最小値を指定して8ビット符号無し整数値を生成します。

宣言
public static byte NextUInt8(this IRandom random, byte max, byte min)
引数
型 名前 説明
IRandom random

疑似乱数生成器です。

System.Byte max

最大値です。

System.Byte min

最小値です。

戻り値
型 説明
System.Byte

結果の分からない値を返します。

例外
型 条件
System.ArgumentOutOfRangeException
  • 編集/提案
  • ソースを表示
Back to top Generated by DocFX