Switched to using random generator from util library.