question

doronhn avatar image
doronhn asked

i want to set default display name for every player (in the first account created)

hey,

i want to set default display name for every player (in the first account created).

how can i generate random alpha-numeric values via cloud script?

Player DataCloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

You can use Math.random() to generate random numbers which you can optionally convert to alpha characters. Ex: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.