Reputation: 23
I want to input a random number (50~200) into my function. I can do it via code. However, when I try to make it work on the button of interface, it only output the random number within 50 (I create a input button and type "random 50 +150"). I hope the random number can be generated by the "input button" on the interface.
The "fav" is the entity I want to generate the random number.
Thanks for all the help
to i.diffusion
let fav random 50 + 150
let Y ceiling ( 0.5 * C + 0.23 * D + 0.1 * fav + 0.3)
print Y
Upvotes: 0
Views: 49
Reputation: 23
Got an idea suddenly.
set the input type to string (command), then let a variable runresult the input. This seems to work as fine. Thank you. @JenB
to o.diffusion ;; the retweet of an official tweet
let aaa runresult test
let Y ceiling ( 0.5 * A + 0.23 * B + 0.1 * aaa + 0.3)
Upvotes: 2