TK.RandomNext Method

Returns a random integer that is within a specified range.
Public Shared Function RandomNext( _ 
ByVal min As Object, _ 
ByVal max As Object
) As Integer
This language is not supported or no code example is available.
public static int RandomNext( 
object min
object max 
)
This language is not supported or no code example is available.

Parameters

min
object

The inclusive lower bound of the random number returned.

max
object

The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Return Value

int

.NET Framework

Supported in: 4.8

In this article

Definition