How to pick a random choice?

alchemylabs7

Новичок
Регистрация
12.06.2011
Сообщения
4
Благодарностей
0
Баллы
0
Hi guys,

already learned a lot from the forum as i get use to working with zenno,

i was wondering if there is a way to pick an option based on a random number or %

an example is youtube were you can LIKE or DISLIKE is there a way to make zenno pick the LIKE button say 70% of the time and the rest DISLIKE?

Any help with be great thanks guys.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
There is a random macros {-Random.Int-|--|--}.
You can do it by using a loop.
like this:
for(i=0;i<10;i++)
{
if(i<6) like();
else dislike();
}
 

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