Chance Templates

This page uses Hashtag Chance Templates to demonstrate a 50% chance of showing a "Triggered!" message, otherwise showing a "Failed!" message.   The messages are styled using Bootstrap 3 default theme classes.   Reload this page to take another chance.  
Processing this Hashtag Markup:
<# set chance_percent to "50"; #>

<# start chance of percentage <#[chance_percent]#>; #>
	<h4 class="alert alert-success">Chance Triggered!</h4>
<# else chance #>
	<h4 class="alert alert-danger">Chance Failed!</h4>
<# end chance #>

Chance Failed!



These pages use the Hashtag Markup Language to demonstrate methods for non-determinism using Chance Templates.

Chance Templates use the latest pseudo-random number generators provided by PHP.