let anag = `body i enact ge`;


            function shuffle(a) {
                var j, x, i;
                for (i = a.length - 1; i > 0; i--) {
                    j = Math.floor(Math.random() * (i + 1));
                    x = a[i];
                    a[i] = a[j];
                    a[j] = x;
                }
                return a;
            }
            
            
            function ShowDiv() {
                document.getElementById('buttonDiv').style.display = 'none';
                document.getElementById('center').style.display = 'flex';
                StartGen();
            }
            
            function HideDiv() {
                document.getElementById('buttonDiv').style.display = 'block';
                document.getElementById('center').style.display = 'none';
                document.querySelector("#content").innerHTML = '';
            }
            
            function StartGen() {
                
                letters = anag.split("");
                shuffle(letters);
                anag = letters.join('');
            
                document.querySelector("#content").innerHTML += '
' + anag + '
'; if (anag == 'decay to begin ') { return; } else { setTimeout(StartGen, 2000); } }