4 given list of lists return flat list of elements, riffled:
5 - order of individual lists is preserved
6 - elements of the same list are far apart
8 (this really should be called "false riffle" because
9 it doesn't shuffle, or "perfect riffle" for the same
10 reason. consult youtube for the card shuffle technique
11 that inspired the name)
14 "does not modify either, returns merged list"
24 r
= float(len(a
)) / len(b
)
26 for i_b
in xrange(len(b
)):
39 def gen_taglist(prefix
, amount
):
40 return [prefix
+str(i
) for i
in xrange(amount
)]
48 print_lst( riffle( [gen_taglist(chr(a
+ord('a')),
50 for a
in range( random
.randint(1,10))] ))