randomtuples first version