Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DarkEldar77

C# Question?

This topic is 5627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
quote:
Original post by al_le
SabreMan: Everyone start as a newbie. Shame!


Everyone start as a newbie: agreed. But there was a time when
newbies used their own brain instead of asking trivial questions
on this forum.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
in the help index change your filter to ".net framework sdk" the look up System.Random

Share this post


Link to post
Share on other sites
quote:
Original post by al_le
SabreMan: Everyone start as a newbie. Shame!

There is only one integral between 1 and 3, which means either the OP was being deliberately stupid, or that the problem is wildly under-specified (such as, he meant 1 to 3 inclusive, or he wants FP with double precision, or some such, any of which can be answered in 10 seconds flat by reading the the manual). My initial reaction was that it was a trick question (hence my initial response), but looking at his posting history I can see he consistently under-specifies problems.

Share this post


Link to post
Share on other sites

  
// C# code

Random rnd = new Random();
Int32 number = rnd.Next(1,4);
// Parameters

// minValue: The lower bound of the random number returned.

// maxValue: The upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Paste the following into the address bar in IE:


You should probably explain the copy-paste procedure as well.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!