add random number generator (used in scans)