> r = [(randrange(0, len(str)), randrange(0, len(str))) for > x in range(randrange(0, len(str)))] Ignore these horrible list comprehensions - they're bad. Normally I would have used a named function and map, but I was extending Lulu's code, and was lazy ... Tim Delaney