Welcome, i’m Isaac
for the next and many posts to come, i will help and guide you on many subjects related to software and hardware issues.
of course, if you have any specific questions , feel free to write back or post a comment!
:)
Isaac.
Welcome, i’m Isaac
for the next and many posts to come, i will help and guide you on many subjects related to software and hardware issues.
of course, if you have any specific questions , feel free to write back or post a comment!
:)
Isaac.
Hi, isaac
How can i get a random number in C#??
i need it for my game project…
thanks
Use the Random class as follows:
Random rnd = new Random();
Int randomInt = rnd.Next();
if you want a series of random number, continue using the Next method.
if you’ll create a new Random instance for every new number, you’ll see duplicated results. (and of course, they’re not random!)
thanks,
it’s work perfect!