random number generator average displayed on screen

Started by mahesh, Dec 16, 2023, 05:07 AM

Previous topic - Next topic

mahesh

Greetings all,
I apologize if my request seems trivial but I am looking for a way to run a random number generator vis script: 0s and 1s only and have it display a running average onscreen till I Ctrl-C to stop it.

I can run "rand -N 100000 -M 2 -e -d '\n' > random.txt" and generate an infinite list if needed then import into libreoffice calc to evaluate but I'd rather just watch a running average displayed on a black screen till I stop it from running.

I'm not a programmer so I thought I'd give the forum a change to help (or flame me for not doing it myself).
Thanks in advance.