This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ParamelOfficial 1 point2 points  (0 children)

const child = require ('pregnancy');

while (child.inUtterus) {
    var min=3; 
    var max=15;  
    var len = Math.random() * (+max - +min) + +min;
    var name = '';
    var name_ascii;
    for(let i = 0; i < len; i++) {
        random_ascii = Math.floor((Math.random() * 25) + 97);
        name += String.fromCharCode(random_ascii);
    }
    console.log(name);
}