    } else {

            generateRows(root);

        }
    }

    function generateRowGroup(root) {

        var tbody; if(rnd(0.7)) {
            tbody = document.createElement('tbody');
        } else if (rnd(0.5)) {
            tbody = document.createElement('thead');
        } else {
            tbody = document.createElement('tfoot');
        }

        generateRows(tbody);
        root.appendChild(tbody);

    }

    function generateRows(root) {

        while(rnd(0.9)) {
            if(rnd(0.9)) {