My project is to create a solitaire game with a different card deck.
I have created four lists with three objecs in each off them and I would like to create 81 unique cards out off these objecs.
colors = [blue, yellow, red]
shapes = [triangel, circle, square]
numbers = [1, 2, 3]
grades = [1, 2, 3]
cards = 
for color in colors:
for form in forms:
for number in numbers:
for grade in grades:
cards.push((color, form, number, grade))
If I want to randomly select three out off these 81 cards. What's the best way to do that?