Re: number generator



"MonkeeSage" <MonkeeSage@xxxxxxxxx> writes:
Taking your comment and running with it...this is pretty much
cheating, and requires that M be evenly divisible by N, and only works
well with smaller N values, and selections are limited to numbers in
the 1 to (M/N)+(M/N) range...but hey; other than that it's perfect, heh.

This still doesn't make terribly much sense in terms of the distribution
you get.

The fencepost method still seems to be simplest:

t = sorted(random.sample(xrange(1,50), 4))
print [(j-i) for i,j in zip([0]+t, t+[50])]
.



Relevant Pages

  • Re: Equation Selector
    ... is really the simplest way to achieve that. ... Select M1, hold down the SHIFT key while arrowing down, ... Is there a way of putting the selections into column M without having to ... selection cell, ...
    (microsoft.public.excel.misc)
  • Re: select with related action list
    ... created and a list of urls for those selections from javascript. ... simplest way. ... option1.appendChild(document.createTextNode("the text to display for ...
    (comp.lang.javascript)
  • Re: select with related action list
    ... created and a list of urls for those selections from javascript. ... simplest way. ... option1.appendChild(document.createTextNode("the text to display for ...
    (comp.lang.javascript)