I’m looking for a method to pick a random Brush in Brushes collection (Aqua,Azure, …Black,…). Any clue?
I’m looking for a method to pick a random Brush in Brushes collection (Aqua,Azure,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a bit of reflection, like so:
That will do the trick. You may want to change the randomisation to use an external
Randominstance, instead of re-creating a new seed each time the method is called, as in my example.