RND: make random int functions public
RND: use function callback for random ints