A device for providing sets of cards, comprising: • a card supply means to supply a series of randomly ordered cards • a plurality of card storage means, in which the cards of said series of randomly ordered cards are to be stored; • a control means adapted to randomly assign each card to one of the plurality of card storage means. • a card identifying means adapted to read an identification element of each card in said series of randomly ordered cards; • a card sorting means, adapted to direct each of the identified cards to the assigned card storage means; wherein the control means being adapted to assign each of the identified cards to one of the card storage means; and characterised in that • said plurality of card storage means comprises N groups of M card storage means, N being an integer equal or larger than 2, M being an integer equal or more than 2, each of said N times M card storage means is uniquely identified by a group identifier being a sign n selected from a first group of N signs and an intra-group identifier being a sign m selected from a second group of M signs; • said control means is adapted to ∘ memorize the number of cards with given identification element being provided to each of said N times M card storage means, and ∘ randomly generate, for each card to be directed to said plurality of card storage means, ▪ a sign Ω chosen from the second group of M signs and/or ▪ a sign π chosen from the first group of N signs; and ∘ assign each identified card to a card storage means for which ▪ the intra-group identifier m equals said sign Ω and/or the group identifier n equals said sign π; and ▪ the number of cards with identification element being equal to the identified identification element of said identified card has not reached a threshold value T. • a card supply means to supply a series of randomly ordered cards • a plurality of card storage means, in which the cards of said series of randomly ordered cards are to be stored; • a control means adapted to randomly assign each card to one of the plurality of card storage means. • a card identifying means adapted to read an identification element of each card in said series of randomly ordered cards; • a card sorting means, adapted to direct each of the identified cards to the assigned card storage means; • said plurality of card storage means comprises N groups of M card storage means, N being an integer equal or larger than 2, M being an integer equal or more than 2, each of said N times M card storage means is uniquely identified by a group identifier being a sign n selected from a first group of N signs and an intra-group identifier being a sign m selected from a second group of M signs; • said control means is adapted to ∘ memorize the number of cards with given identification element being provided to each of said N times M card storage means, and ∘ randomly generate, for each card to be directed to said plurality of card storage means, ▪ a sign Ω chosen from the second group of M signs and/or ▪ a sign π chosen from the first group of N signs; and ∘ assign each identified card to a card storage means for which ▪ the intra-group identifier m equals said sign Ω and/or the group identifier n equals said sign π; and ▪ the number of cards with identification element being equal to the identified identification element of said identified card has not reached a threshold value T. ∘ memorize the number of cards with given identification element being provided to each of said N times M card storage means, and ∘ randomly generate, for each card to be directed to said plurality of card storage means, ▪ a sign Ω chosen from the second group of M signs and/or ▪ a sign π chosen from the first group of N signs; and ▪ a sign Ω chosen from the second group of M signs and/or ▪ a sign π chosen from the first group of N signs; and ∘ assign each identified card to a card storage means for which ▪ the intra-group identifier m equals said sign Ω and/or the group identifier n equals said sign π; and ▪ the number of cards with identification element being equal to the identified identification element of said identified card has not reached a threshold value T. ▪ the intra-group identifier m equals said sign Ω and/or the group identifier n equals said sign π; and ▪ the number of cards with identification element being equal to the identified identification element of said identified card has not reached a threshold value T.