CopyPastor

Detecting plagiarism made easy.

Score: 0.8064839243888855; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2021-08-02
by Adamszsz

Original Post

Original - Posted on 2009-08-28
by csharptest.net



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Or you can make somehitng like this :


function GeneratePassword(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } console.log(`Password is :`,GeneratePassword(12));

I think this will work for you:
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
function makeid(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for ( var i = 0; i < length; i++ ) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; } console.log(makeid(5));
<!-- end snippet -->


        
Present in both answers; Present only in the new answer; Present only in the old answer;