Added functions to limit numeric values
fixed randomdice