Math.Random Method

Generates a pseudorandom number.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)


[MethodImplAttribute]
public static int Random (
         int modulo
)

Parameters

modulo
A modulo to apply to the pseudorandom number that is generated. Note that the generated number is greater than or equal to 0 (zero) and less than the modulo.

Return Value

A pseudorandom number.

Available in .NET Micro Framework version 2.0, 2.5

Show: