Hi all,
I need to write some code to generate a large number (say, 100k) of permutations of, say, 50 numbers (so, 5M numbers in total), i.e. something like:
set_id id_within_set position_within_set
1 1 10
1 2 49
1 3 26
...
1 50 36
2 1 41
2 2 4
2 3 33
...
2 50 50
...
where there are 100k sets, and position_within_set is an integer random number between 0 and 50, unique within each set.
If anyone could suggest a way how to achieve that within 1-2 seconds, it would be greatly appreciated.
Thanks!
Best regards,
Nikolay