Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Get random color


Public Function RandomRGBColor() As Long
   RandomRGBColor = RGB( _
       Int(Rnd() * 256), _
       Int(Rnd() * 256), _
       Int(Rnd() * 256))
End Function