I'm creating a site for people playing cards with php. I would like to know how to create a deck of 50 cards for each person. In the database I have a table with 300 different cards and of these 300 cards I want the user to register generate 50 random cards of the 300 that I have in the table for his deck. I suppose it has to be with array and random.