I’ve successfully created a lottery number generator app in Thunkable classic, imported from AI2 and I’m trying to re-create it in ThunkableX, however I’m having issues with building/using the list. The code blocks are attached for both:
As there’s no way of stepping through the program and discovering errors, I’ve used a trace label to check the status of various elements and they are presenting unexpected results. No method I’ve used thus far has worked. So any guidance/ideas would be most appreciated.
“picks” is a list
“pick” is the ball (random number) being picked
“num” is a variable for the number of balls to be drawn (Lotto 6, Euro 5 then 2)
“nums” is a variable for the max no of balls in the draw ( Lotto 59, Euro 49 then 12)
“draws” is a list of lists (to accommodate the Euro draw)
In my app, I actually use a random seed generated from Epoch time before every ball is drawn, to make the choice as random as possible. However, using a random seed in Thunkable X doesn’t seem to be available, which is a shame. Why? It’s because you can test “random numbers” with definite patterns, dependent on your seed choice, to make sure that everything works as expected.