@tankt80bars said in Перевести в string:
Здравствуйте, подскажите пожалуйста как цифровую переменную (с плавующей точкой) перевести в строку.
46cbd033-e424-4f72-9099-ce7a723fb9fc-изображение.png
I am testing a random number function with the following order:
[[VLENGHT]] = "10-20"
Math.floor(Math.random() * ((([[VLENGHT]].split("-"))[1]) - (([[VLENGHT]].split("-"))[0]) + 1)) + (([[VLENGHT]].split("-"))[0])
But the result is 0 or 010
Please fix it for me. Thank you
@vip764 Hi, there is "Random Number" action which does exactly what you indent to do with javascript.

The problem with your code is that you need to convert string to number
(([[VLENGHT]].split("-"))[1])
To
parseInt((([[VLENGHT]].split("-"))[1]))