Local Varibles
Can I make a local varible random (between one and ten) as an event?
Thank you!
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Can I make a local varible random (between one and ten) as an event?
Thank you!
Hello,
Please, take a look at this link: https://getsatisfaction.com/apperyio/...
Thanks. Thats close to what I want but I really just want to know if I can use the on click section to create the random local variable OR can I have it insert it insert an existing string.
.
If I cannot, I can follow most of the link and know that you want me to stick that into the javascript thing and have it run on click but I am unsure what I am doing in terms of mapping the request data from my service :S
Sorry, very tired newbie here ![]()
Hi -
Following the example of the link above:
precode
var min = 1, max = 10;
var rand = min - 0.5 + Math.random () * (max-min +1)
rand = Math.round (rand);
/code/pre
rand variable will be a random number from 1 to 10.