[MOD] raise an error if invalid max was used for random:integer()

see the ML: https://mailman.uni-konstanz.de/pipermail/basex-talk/2014-August/007128.html