Re: randrange loops

2008-06-15 Thread [EMAIL PROTECTED]
On 15 Jun, 21:05, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | Hi, > | > | > | I've created a method where the script defines twenty variables and > | several of them should be random having a maximum and a minimum value. > | > | Wha

Re: randrange loops

2008-06-15 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, | | | I've created a method where the script defines twenty variables and | several of them should be random having a maximum and a minimum value. | | What I did was this: | | from random import randrange as rr, random | | self.tr2

Re: randrange loops

2008-06-15 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I've created a method where the script defines twenty variables and > several of them should be random having a maximum and a minimum value. > > What I did was this: > > from random import randrange as rr, random > > self.tr2_vezes = self.rr(self.d_tr2_vezes[0],self.d

Re: randrange loops

2008-06-15 Thread Cédric Lucantis
Le Sunday 15 June 2008 20:23:56 [EMAIL PROTECTED], vous avez écrit : > Hi, > > > I've created a method where the script defines twenty variables and > several of them should be random having a maximum and a minimum value. > > What I did was this: > > from random import randrange as rr, random > > s

randrange loops

2008-06-15 Thread [EMAIL PROTECTED]
Hi, I've created a method where the script defines twenty variables and several of them should be random having a maximum and a minimum value. What I did was this: from random import randrange as rr, random self.tr2_vezes = self.rr(self.d_tr2_vezes[0],self.d_tr2_vezes[-1], 1) # just an exa