Skip to content

Instantly share code, notes, and snippets.

@hmert
Created August 25, 2010 12:12
Show Gist options
  • Select an option

  • Save hmert/549378 to your computer and use it in GitHub Desktop.

Select an option

Save hmert/549378 to your computer and use it in GitHub Desktop.
// rastgele rakamlı harfli değer üretir.
var randomString = function(numchars) {
var chars = "0123456789ABCDEFGHJKMNPQRSTUVWXYZabcdefghkmnpqrstuvwxyz";
var randomstring = '';
for (var i=0; i<numchars; i++) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars.substring(rnum,rnum+1);
}
return randomstring;
};
@musaulker

Copy link
Copy Markdown

Neden bilmiyorum bana çok tanıdık geldik :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment