While on a field trip, I decided to make a few card games and generated a randomization of the numbers 52. However, I run into a problem that I can only think that must be caused by the TI-OS.
What happens is that I use code similar to:
Code:
L1 is a randomization of the numbers 1, 2, 3, ..., 52.
When ever I run something like this, it always seems to produce error domain (even if I just use a list of the numbers 1 to ๐. However, when I take the actual value of the 1+32fpart(L1(I)/4), and write that out (as a numeral, not a variable), it works. It does not work if I store the value to a variable.
Any reasons this could happen? I think I posted a similar thing about this a while ago, but I didn't have a clue what was happening then.
What happens is that I use code similar to:
Code:
:For(I,1,8
:Output(I,1,sub("Clubs DiamondsHearts Spades ",1+32fpart(L1(I)/4),8
:similar thing for number here
:EndL1 is a randomization of the numbers 1, 2, 3, ..., 52.
When ever I run something like this, it always seems to produce error domain (even if I just use a list of the numbers 1 to ๐. However, when I take the actual value of the 1+32fpart(L1(I)/4), and write that out (as a numeral, not a variable), it works. It does not work if I store the value to a variable.
Any reasons this could happen? I think I posted a similar thing about this a while ago, but I didn't have a clue what was happening then.










