[SOLVED] I cannot get a random line of a table

  • Автор темы Автор темы Stroks
  • Дата начала Дата начала

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Реакции
14
Баллы
18
Besically ZP isn't able to take a line from or I am doing something wrong.

I am trying to get 5 random elements from a table that is 7 lines long.

1) bind_to_file
2) table_processing - random line - to variables

Then I repeat this 5 times in order to get 5 elements.

Then I get message:
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
 
Please attach sample to reproduce.
 
  • Спасибо
Реакции: Stroks
I found al alternative way but the bug is still here.

The bug only occurs when the first taking_line table_processing is set to random. If a specific number is add, everything works fine, even following taking_line table_processing is set to random.
 
...
 

Вложения

  • test2.zip
    test2.zip
    17,5 KB · Просмотры: 414
Works fine by my side
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)