src/lib/wordfind.js
function (puzzle) {
                for (var i = 0, height = puzzle.length; i < height; i++) {
                    var row = puzzle[i];
                    for (var j = 0, width = row.length; j < width; j++) {
                        if (!puzzle[i][j]) {
                            var randomLetter = Math.floor(Math.random() * letters.length);
                            puzzle[i][j] = letters[randomLetter];
                        }
                    }
                }
            }
function (puzzle) {
                for (var i = 0, height = puzzle.length; i < height; i++) {
                    var row = puzzle[i];
                    for (var j = 0, width = row.length; j < width; j++) {
                        if (!puzzle[i][j]) {
                            var randomLetter = Math.floor(Math.random() * letters.length);
                            puzzle[i][j] = letters[randomLetter];
                        }
                    }
                }
            }
function ( puzzle ) { for ( var i = 0 , height = puzzle . length ; i < height ; i ++ ) { var row = puzzle [ i ] ; for ( var j = 0 , width = row . length ; j < width ; j ++ ) { if ( ! puzzle [ i ] [ j ] ) { var randomLetter = Math . floor ( Math . random ( ) * letters . length ) ; puzzle [ i ] [ j ] = letters [ randomLetter ] ; } } } }
Fills in any empty spaces in the puzzle with random letters.

@param {[[String]]} puzzle: The current state of the puzzle
@api public
Fills in any empty spaces in the puzzle with random letters .