For a specific scenario we require secure random numbers in our cloud script implementation. Is this available in the PlayFab cloud scripts, or would we have to make an external HTTP request to obtain this?
For a specific scenario we require secure random numbers in our cloud script implementation. Is this available in the PlayFab cloud scripts, or would we have to make an external HTTP request to obtain this?
It depends on how will you generate this random number. Cloud Script is based on Google V8 Engine, which is running on native JavaScript and 3-rd party modules are not supported. You can generate random number simply via Math.random();
If Math.random() can’t meet your requirement, you can also make an external HTTP request to obtain this.
4 People are following this question.