Some tests for rand module.
callback implemented