web service that returns a random number. const url = 'https://www.random.org/decimal-fractions/' + '?num=1&dec=10&col=1&format=plain&rnd=new'; while (true) { const response = await fetch(url); const text = await response.text(); yield Number(text); } }