Math.Random Method

Generates a pseudorandom number.

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

Syntax

[MethodImplAttribute]
public static int Random (
         intmodulo
)

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.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Math Class
Math Members
Microsoft.SPOT Namespace