JSFiddle - React, Tailwind, and code Playground

JavaScript

var context = new AudioContext();

function noise() 
{
    var node = context.createScriptProcessor(1024, 0, 1);
    node.onaudioprocess = function(e)
    {
        var output = e.outputBuffer.getChannelData(0);
        for(var i = 0; i < 1024; ++i)
        {
            output[i] = (Math.random() * 2 - 1) * 0.001;
        }
    }

    node.connect(context.destination);
    node.disconnect();
    node.onaudioprocess = null;
    node = null;
}


function generateNoise()
{
    for(var i = 0; i < 99999; ++i)
    {
        noise();   
    }
}

generateNoise();