Better way

0 Tóth Bence · September 16, 2015
Is there a better / nicer way to do this?

grid.Background = new SolidColorBrush(Color.FromRgb(byte.Parse(random.Next(0,255).ToString()), byte.Parse(random.Next(0, 255).ToString()), byte.Parse(random.Next(0, 255).ToString())));

Post a Reply

Replies

Oldest  Newest  Rating
0 Tóth Bence · September 19, 2015
(byte)random.next(0,255)
  • 1

C#

107,035 followers
About

C# is an object-oriented language designed for improving the development of web applications.

Links
Moderators