Call rand() on space instead of timer