I need to return 2 random strings 'John' or 'Mary' to implement in the following table .. I already ran a Google search, but I could only return the integers, not the strings. Thank you! Follow the code ...
for(i = 1; i<=30; i++) {
var maximo = 5;
var a = parseInt(Math.random()*maximo+1);
var b = parseInt(Math.random()*maximo+1);
var name = // <= aqui vem a logica dos nomes!
table += '<tr><td>'+i+'</td>';
table += '<td>'+a+'</td>';
table += '<td>'+b+'</td>';
table += '<td>'+name+'</td>';
table += '<td>1</td>';
table += '<td>1</td>';
table += '<td>1</td></tr>';
}