Re: [Tutor] number distribution

2010-04-22 Thread Alan Gauld
"Bill Jordan" wrote If we have 100 apples, for example, and we need to distrubte the 100 apples randomly in 10 boxes, how can we do this in python? This sounds like homework, and we don't do homework for you. But if you'd like to tell us your ideas, or even better show us whatever code you

Re: [Tutor] number distribution

2010-04-22 Thread Hugo Arts
I suggest you take a look at the random module. There should be something in there that suits your needs. On Thu, Apr 22, 2010 at 2:13 PM, Bill Jordan wrote: > Hey everbody, > > If we have 100 apples, for example, and we need to distrubte the 100 apples > randomly in 10 boxes, how can we do this