Hi, wondering if anyone can help me figure something out?
I got Groups of cards and there are 9 cards in each group numbered in squence
If I pick a random card number I need to figure out how to determine which group that card number belongs too
Groups
1 2 3
---------
1 10 19
2 11 20
3 12 21
4 13 22
5 14 23
6 15 24
7 16 25
8 17 26
9 18 27
Say I pick a random card number of 12 > How to return the value of which Group that card belongs too?
Obviously it's group 2 but I am struggling to find a good way to accomplish this.
Random Card=12
Group Number=
Any thoughts?
Thanks in advance