Answer the question
In order to leave comments, you need to log in
How to get random number in vk execute?
How to get random number in vk execute?
Answer the question
In order to leave comments, you need to log in
There is one secret technique:
var min = 100, max = 1000;
return max-API.apps.getRandomInt({max:max-min+1});
There is no pseudo-random generator in VC methods.
You can generate several random ones from the server in advance (?) and save them in Storage . From the execute method, it is already easy to read random and use it to get a specific id.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question