Search Puzzle With Letters And Numbers | SJB -->

This website uses cookies to ensure you get the best experience. More info...

Pages

Search Puzzle With Letters And Numbers

Search Puzzle With Letters And Numbers | Virtual Species

We can create a search puzzle with a grid of random letters and numbers. Below is a 10x10 puzzle board. Use generate button to get the puzzle and find script at the end of this page.



1
2
3
4
5
6
7
8
9
10
11
12
var table = [];
for (var i = 0; i < 10; i++) {
   var column = "";
   for (var j = 0; j < 10; j++) {
       var charDigit = 'ABCDEFGHIJKLMNOPQRSTUVXYZ0123456789';
       var randCharDigit = charDigit.charAt(parseInt(Math.random()*charDigit.length));
       var cell = '<td>' + randCharDigit + '</td>';
       column += cell;
   }
   table.push('<tr>' + column + '</tr>');
}
document.getElementById('tblRandCharDigit').innerHTML = table.join("");

No comments:

Post a Comment