Problem with list item's

Hello, i have a big problem with list item’s.

I create 2 list (Win, Lose).
-> Win has 15 items (numbers) >> 1 2 5 9 13 17 20 25 33 39 46 65 80 100 500
-> Lose has 10 items (numbers) >> 1 2 5 11 19 25 30 39 47 85
Now i want a random item from >> Win << with the block

random integer from 1 to length of Win

and then i want a random item from >> Lose << with the same block but the

length of Lose

This items put in a other list with the name >> Data <<

The result is when i make a loop 25 times.
Win have 1 item left. Why?

I thought if I have 25 items together in >> Win << and >> Lose << and do 25 repetitions, I end up with 0 items in both lists?!?!?!?!

(Win, Lose, Win, Lose, Win, Lose, Win, Lose, Win, Lose, Win, Win, Win, Win, Win, Lose, Win, Lose, Win, Lose, Win, Lose, Win, Lose, Win)

EDIT: This is the Runtime Error

Runtime Error
Select list item: Attempt to get item number 25 of a list of length 24: (12 6 9 3 6 5 9 5 2 4 3 2 8 1 5 1 1 1 3 3 1 2 1 1)
Note: You will not see another error reported for 5 seconds.

It is better to show your related blocks. Btw, from your runtime error, I can see the list contain only 24 items.

2 Likes

Yea… and i know why. I am so stupid. I try fix the problem over 2 hours and now i see the problem. I have built a loop that checks how often the loop has run through. And the check sum was -> HowMany <= 24 <- … Right was -> HowMany <= 25 <-

I kick my a** for it. xD

1 Like

It is great you know your mistakes! However in this community, we have rules. Please remove the inappropriate wording

1 Like

I dont use inappropriate wording.

I use “a” with 2 * … I wold write the word but i know the rules and have make a censored word. :wink:

whatever :unamused: