Article on rand() optimization