Rick Muller wrote:
On Apr 8, 2005, at 11:37 AM, [EMAIL PROTECTED] wrote:
From: joe_schmoe <[EMAIL PROTECTED]>
For example, this is what I am currently doing:
=code block
# generate unique numbers and append to list
nmbr01 = random.randrange( 1, 20 )
On Apr 8, 2005, at 11:37 AM, [EMAIL PROTECTED] wrote:
From: joe_schmoe <[EMAIL PROTECTED]>
For example, this is what I am currently doing:
=code block
# generate unique numbers and append to list
nmbr01 = random.randrange( 1, 20 )
nmbr_list.append( n
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to
a list to check whether it is a duplicate of a list element already a
member of that list, and if so to regenerate itself randomly and