I'd like to know how to do this with --any class that has various values to choose from.
thanks. anything will help.
Printable View
I'd like to know how to do this with --any class that has various values to choose from.
thanks. anything will help.
How about this:
VB Code:
Dim intRandRed As Integer, intRandGreen As Integer, intRandBlue As Integer Randomize() intRandRed = Int((256) * Rnd()) Randomize() intRandGreen = Int((256) * Rnd()) Randomize() intRandBlue = Int((256) * Rnd()) System.Drawing.Color.FromArgb(intRandRed, intRandGreen, intRandBlue)
Naughty froggy. There is no need to put Randomize 3 times, just the once will do, at the top.
I wanted it to be as random as possible! :DQuote:
Originally posted by wossname
Naughty froggy. There is no need to put Randomize 3 times, just the once will do, at the top.
works wonders :)
I didn't know about that function =/
Then why didn't you use the Cryptographically strong randomizer? (System.Security.Cryptography, I think) That even gives output as byte values!Quote:
Originally posted by mendhak
I wanted it to be as random as possible! :D
Very naughty froggy :D :lol: