( ** 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

In this example, we use the ASPL script throwdice.aspl to simulate three players throwing dice on a craptable. The script is called with the argument 900 for nine hundred throws per player (with a fair dice throw between the three players).

1 Cmd#1 on Machine mm01 User root
(ndxNo=1 Cmd# No=1 on Machine mm01 User root no_tm_u_h_cwd=3:31:40 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl u_h=root@mm01)
BASH 3:31:40 root@mm01 /opt/ASPLv1.00/test~/ScriptFinal/throwdice-aspl # throwdice.aspl 900
Running the ASPL script throwdice.aspl to simulate three players throwing dice on a craptable with 900 throws

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