dnd beyond – How do dndbeyond.com’s dice work?

dndbeyond.com’s character sheets have the option to roll checks and to roll specific dice on the page for a character sheet.

How do these 3D animated dice work? Do they generate a random number and the animation follows it, or does the simulated throw generate the number? Are the rolls guaranteed to be random?