def rslices(n, allow_empty=False):
 for _ in range(5):
  (yield rslice(n, allow_empty))

def rslices ( n , allow_empty = False ) : for _ in range ( 5 ) : ( yield rslice ( n , allow_empty ) )
generate random slices for a single dimension .