/ Published in: C#
Expand |
Embed | Plain Text
int random = rdm.Next(3);
Comments
Subscribe to comments
You need to login to post a comment.
krisdb on 02/25/09
4 people have marked this snippet as a favorite
enajenkins
umang_nine
ddevening
rodrigojuarez
int random = rdm.Next(3);
Subscribe to comments
You need to login to post a comment.
Shorter:
int value = new Random().Next(3);