bugfix in random tuple generator