mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* implementation * tests * docs, core-changes * address review comments - no need for negative check with clamping
6 lines
225 B
Text
6 lines
225 B
Text
use util;
|
|
|
|
print( RandomDiceRoll( "1d1" ) == 1 );
|
|
print( RandomDiceRoll( "1d1 - 10" ) == 0 );
|
|
print( RandomDiceRoll( "1d1 - 10", 1 ) == -9 ); // allow_negatives
|
|
print( RandomDiceRoll( "1d1 + 0xffff" ) == 0xffff ); // clamp
|