comment out rand() bad for performance