If I have a dataframe such as number from 1 to 50, then I need 'X' sets of number, each set contains 'Y' random numbers. And the number could not be REPEAT.
For example, X =5 and Y=5
X1 1, 8, 12, 17, 16
X2 9, 22, 45, 47, 23
X3 13, 19, 21, 34, 50
X4 46, 49, 29, 38, 11
X5 33, 26, 14, 7, 6
Does anyone know how could I do this by python Pandas or random package or by R?
Aucun commentaire:
Enregistrer un commentaire