Utility.GetRandomColor Method

Generates a random color.
Public Shared Function GetRandomColor( _ 
ByVal rand As Random
) As Color
This language is not supported or no code example is available.
public static Color GetRandomColor( 
Random rand 
)
This language is not supported or no code example is available.

Parameters

rand
Random

A Random class instance,

Return Value

Color

The random color.

.NET Framework

Supported in: 4.8

In this article

Definition