Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-08 Thread steve uurtamo
while neither a normal distribution nor integer based, the following is relatively fast and may be useful for you (you might need to slide things around so that you get the maximum value where you want it and ignore the rest) check out the poisson distribution: http://en.wikipedia.org/wiki/Poisso

Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-08 Thread Jacques BasaldĂșa
Mike Hill wrote: The essence of my idea is that I want a psuedo-random algorithm which takes as a parameter a 'degree-of-randomness' value. Something along these lines: int choose( int range, int degree-of-randomness) Returns an integer in [0-range] distributed depending on the value of de

Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-07 Thread Nick Wedd
In message <[EMAIL PROTECTED]>, Mike Hill <[EMAIL PROTECTED]> writes Folks... First, let me say how much pleasure my reading of this list has given me. I love that folks are out there cranking on this problem. Truly, it's one of the great problems. I have a rather strange request. I am a

Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-06 Thread Ray Tayek
At 07:03 PM 11/6/2007, you wrote: ... Returns an integer in [0-range] distributed depending on the value of degree-of-randomness. At degree-of-randomness 100, I want the distribution to be uniform. At degree-of-randomness 0, I want the distribution to be -- I don't even know what to call th

Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-06 Thread Thomas Nelson
On Tue, 6 Nov 2007, Mike Hill wrote: int choose( int range, int degree-of-randomness) Returns an integer in [0-range] distributed depending on the value of degree-of-randomness. At degree-of-randomness 100, I want the distribution to be uniform. At degree-of-randomness 0, I want the distr

Re: [computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-06 Thread Jason House
It sounds like you're frustrated, so here's a few lines of C code that'll do about what you describe. Note that the use of large values for the standard deviation will make the code go very slow from repetitive looping. The divide by 10 is to make it not be too slow with a degree of randomness of

[computer-go] [OT] All-integer scalable distribution algorithm.

2007-11-06 Thread Mike Hill
Folks... First, let me say how much pleasure my reading of this list has given me. I love that folks are out there cranking on this problem. Truly, it's one of the great problems. I have a rather strange request. I am a statistical idiot, in both senses of 'statistical'. After scrolling