Add help function and fix Random bugs