Testing rand() range