JS simulation of the evolution dice rolling analogy