Timeline for Why use this equation to get a percentage?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 26, 2012 at 7:09 | vote | accept | xdevel2000 | ||
Jul 26, 2012 at 7:09 | vote | accept | xdevel2000 | ||
Jul 26, 2012 at 7:09 | |||||
Jul 25, 2012 at 19:42 | comment | added | House | Note how Jesse Emond modifies his definition: "generates a number between 0.0f and 999.0f inclusively." (Emphasis mine) That's a correct way of saying it, but you can also do as I have and leave the definition unchanged along with the numbers. | |
Jul 25, 2012 at 13:35 | comment | added | House | @xdevel2000 C# is inclusive at the min end and exclusive at the max end. When I say "a number between 0 and 100", I intend to mean in in the same way. The zero is inclusive and the one hundred is not. When you say between 0 and 999, you would have to modify the definition to be inclusive at both ends. So you might say: "Between 0 and 999 inclusive." Otherwise, just stick with the original definition. | |
Jul 25, 2012 at 7:11 | comment | added | xdevel2000 | @Byte56: great and congratulation for this answer, very detailed and analytics on probability and statistics in general. Thanks a lot. Anyway, I wanted to ask you one more thing: why do you keep saying that (float) rand.Next (0.1000) gives a number between 0 and 1000 and not between 0 and 999? | |
Jul 24, 2012 at 15:31 | comment | added | House | Down voter care to comment? | |
Jul 24, 2012 at 14:17 | history | edited | House | CC BY-SA 3.0 |
added 2182 characters in body
|
Jul 24, 2012 at 7:11 | comment | added | xdevel2000 | Yes, good answer and thanks for the images :) However when you say that having 50f give us a 50% of probability if I run the code with this value I have some time that the number generated, some time, is not 50% lesser than 50 and 50% greater then 50. In fact I have, for example, 76 59,7 95,5 31,4 so 3 time greater than 50 and one time lesser. Why? | |
Jul 23, 2012 at 15:02 | history | edited | House | CC BY-SA 3.0 |
added 223 characters in body
|
Jul 23, 2012 at 14:27 | comment | added | Jesse Emond | @xdevel2000: you should update the question accordingly to explain a little bit more what you expect form the answers. I tried to give a different explanation, if that was what you were looking for. | |
Jul 23, 2012 at 14:26 | history | edited | House | CC BY-SA 3.0 |
added 238 characters in body; added 72 characters in body
|
Jul 23, 2012 at 14:19 | history | edited | House | CC BY-SA 3.0 |
added 533 characters in body
|
Jul 23, 2012 at 14:13 | comment | added | xdevel2000 | Yes, maybe I explain the question bad! I understand the statement, I don't understand why that equation! P.S. A number is taken between 0 and 999... | |
Jul 23, 2012 at 14:10 | history | answered | House | CC BY-SA 3.0 |