( ** Go back to PARENTPAGE ../ASPL-Scripting-Language.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Simulating three players throwing dice on a craptable with unfair or bias dice throwing

In the following simulation we show three players throwing dice on a craptable. This simulation shows an unfair dice roll between the three players. The simulation is biased since the throw is retried a number of times to to reach a specific outcome. The simulation shows how entropy decreases as the bias decreases.

1 Cmd#1 on Machine mm01 User root
(ndxNo=1 Cmd# No=1 on Machine mm01 User root no_tm_u_h_cwd=11:54:6 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl u_h=root@mm01)
BASH 11:54:6 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl # throwdice.aspl 900 4 3
Running the ASPL script throwdice.aspl to simulate three players throwing dice on a craptable with 900 throws and being biased toward the outcome; where 4 specifies the number of retrials on the first landing die to be retried in the hope to realise an outcome, and 3 specifies the number of retrials on the other one.

2 Cmd#2 on Machine mm01 User root
(ndxNo=2 Cmd# No=2 on Machine mm01 User root no_tm_u_h_cwd=11:54:26 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl u_h=root@mm01)
BASH 11:54:26 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl #