If you want to display an element randomly you can select the time you want to display it.
Example:
you want to run an A/B test, showing content for half of users, and for other another (or nothing);
applied to many elements on the same page, you can generate a different page for every load.