It's that time again kids. No, I don't mean Easter. It's time for my blog! And boy is it gonna be great. Just kidding, more filler, crap and a little bit of stealing to add to my blog! Not much happened this week, started up random numbers, working on selection. This means that the code is somewhat difficult to follow. For example. we would have to say, get a bag of balls, then calculate the chance of picking up a colored ball x number of times, compared to the others. What makes it more complicated is that when i was attempting this, I tried to do random selection without duplication.
What this means is that I will take a ball out of the bag, then not replace it. Then calculate the chances of getting another ball of similar colour, or whatever the question requires of me. And that reminded me of why I absolutely hate random numbers. Other than the fact that random numbers are random. The way C# does the generating of code is stupid. If i was to find a random number:
RandomNumber = r.Next(1,4) ;
This would give me the numbers 1-3. What the hell? No matter how you look at it, 1,4 it would be 1-4, or 1 up to 4. But if you read the intellisense (sp) then you would see upper bracket (goes to 4) and 1 is lower bracker (lowest of 1). If you ever have attempted this, it is not the case and is severely aggravating me.
Anyways, back to the point. The selection without duplication is somewhat difficult. And if I can find my test from last year, I think there was on it. So off to work I go. One think that i am grateful for is that by using random number generators, I never have to use the monster of a input box, for which my wrist is eternally grateful. Good bye faithful readers, and refreshing my page every day for 3 weeks hoping for an update. Your prayers have been answered.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment