get rand function included for require