I have a scenario where I have to generate random 6 digit code in every snaplogic execution from given letter set below.
0123456789ABCDEF
can any one help in this.
Strictly speaking, Math.round(Math.random()*15) disfavors 0 and F; they are only half as likely to appear as any of 1 through E are.
Math.floor(Math.random()*16) distributes better.