Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to generate random 6 digit charecter in js for coupon

var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var stringChars = new char[6];
var random = new Random();

for (int i = 0; i < stringChars.Length; i++)
{
    stringChars[i] = chars[random.Next(chars.Length)];
}

var finalString = new String(stringChars);
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #generate #random #digit #charecter #js #coupon
ADD COMMENT
Topic
Name
6+1 =