Skip to main content

Timeline for Random number generation

Current License: CC BY-SA 3.0

16 events
when toggle format what by license comment
Jun 22, 2011 at 20:36 comment added user @whuber FWIW, question is edited again. I don't know how much I clarified it. Thanks for your patience.
Jun 22, 2011 at 20:34 history edited user CC BY-SA 3.0
deleted 152 characters in body; edited tags
Jun 22, 2011 at 16:09 comment added whuber @crucified I think it would be good for you to experiment so you can understand what this simple formula does and see what it does not do. In particular, my reply has not specified any method to generate the random values. That is the important consideration. You already have two specific replies (one of which is a special case of the other), but they don't begin to describe the scope of the possibilities. Again: how do you need the numbers to be distributed?
Jun 22, 2011 at 14:57 comment added user @whuber: So, in a word, your method is range invariant? What if, i use different ranges for generating n variables for different individuals, will it make any difference?
Jun 22, 2011 at 13:41 comment added whuber @crucified If you are generating only integers, then the resolution of the final values will be finer when the ranges are greater. Otherwise there is no difference.
Jun 22, 2011 at 12:28 comment added user @whuber: this is may be silly question. The range of generated value 1<*x*<100 or 1<*x*<10, will it make any difference between these range?
Jun 22, 2011 at 10:36 answer added user603 timeline score: 3
Jun 22, 2011 at 9:54 comment added user @whuber: great solution. You have solved another problem of mine. Wish I could vote up you more.
Jun 22, 2011 at 7:56 answer added Harsh timeline score: 2
Jun 21, 2011 at 23:28 comment added whuber One answer: generate $n$ random values. Divide each by their total. This works whenever their total is nonzero. The generality of this solution highlights the real question: how do you want those random values to be distributed?
Jun 21, 2011 at 23:02 history edited cardinal CC BY-SA 3.0
deleted 17 characters in body
Jun 21, 2011 at 22:54 comment added user FWIW, question is edited. TIA
Jun 21, 2011 at 22:52 history edited user CC BY-SA 3.0
added 878 characters in body
Jun 21, 2011 at 22:23 comment added cardinal Questions: What do you mean by "parameter"? (Do you mean you want to generate $n$ random variates according to your condition?) What do you mean by "error margin"? What other (distributional, etc.) constraints would you like to be satisfied? The answer to your question is undoubtedly yes, but how to go about it will depend other details of your problem. Please edit your question accordingly.
Jun 21, 2011 at 22:21 history edited cardinal CC BY-SA 3.0
deleted 7 characters in body
Jun 21, 2011 at 22:15 history asked user CC BY-SA 3.0