I'm creating a numbers game and I have a list within a list which creates this table:
0,0,0,0,0,0,0,0,0,0,0,0
1,1,1,1,1,1,1,1,1
2,2,2,2,2,2,2,2,2
3,3,3,3,3,3,3,3,3
4,4,4,4,4,4,4,4,4
5,5,5,5,5,5,5,5,5
6,6,6,6,6,6,6,6,6
7,7,7,7,7,7,7,7,7,7,7,7
8,8,8,8,8,8,8,8,8,8,8,8
9,9,9,9,9,9,9,9,9,9,9,9
I need to hand out the numbers randomly and then delete them from the Main List
, but I when I try to delete a specific number, it deletes the entire row instead of a number.
What I want to happen is when the program hands out a number (let's take 5), there are a total of 9 fives. It adds one of those to the P1 list (that already works), then it removes one instance of a five so you're left with 8 fives to hand out.