Class RandomExtensions
Inheritance
RandomExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class RandomExtensions
Methods
|
Improve this Doc
View Source
NextChoice<T>(Random, T[])
Declaration
public static T NextChoice<T>(this Random random, params T[] choices)
Parameters
Type |
Name |
Description |
Random |
random |
|
T[] |
choices |
|
Returns
Type Parameters
|
Improve this Doc
View Source
NextColor(Random, Byte)
Declaration
public static Color NextColor(this Random random, byte alpha = 255)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Color |
|
|
Improve this Doc
View Source
NextDate(Random, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Declaration
public static DateTimeOffset NextDate(this Random random, DateTimeOffset? minimum = default(DateTimeOffset? ), DateTimeOffset? maximum = default(DateTimeOffset? ))
Parameters
Returns
|
Improve this Doc
View Source
NextGuid(Random)
Declaration
public static Guid NextGuid(this Random random)
Parameters
Type |
Name |
Description |
Random |
random |
|
Returns
|
Improve this Doc
View Source
NextInSequence(Random, Int32, Int32, Int32)
Declaration
public static int NextInSequence(this Random random, int minimum, int maximum, int step)
Parameters
Returns
|
Improve this Doc
View Source
NextInSequence(Random, Int64, Int64, Int64)
Declaration
public static long NextInSequence(this Random random, long minimum, long maximum, long step)
Parameters
Returns
|
Improve this Doc
View Source
NextLong(Random)
Declaration
public static long NextLong(this Random random)
Parameters
Type |
Name |
Description |
Random |
random |
|
Returns
|
Improve this Doc
View Source
NextLong(Random, Int64, Int64)
Declaration
public static long NextLong(this Random random, long min, long max)
Parameters
Returns
|
Improve this Doc
View Source
NextMatrix(Random, Int32, Int32)
Declaration
public static double[, ] NextMatrix(this Random random, int length, int height)
Parameters
Returns
|
Improve this Doc
View Source
NextRange(Random, Double, Double)
Declaration
public static Interval<double> NextRange(this Random random, double min = 0, double max = 1)
Parameters
Returns