XColor SetRandom Function. Set the color to a random opaque value in the current color space. ABCpdf .NET PDF Library. From ABCpdf .net previous page next page SetRandom Function Set the color to a random opaque value in the current color space. Syntax [C#] void SetRandom() [Visual Basic] Sub SetRandom() Params Name Description None Notes Set the color to a random opaque value in the current color space. Example None. previous page start next page