dont do rand() on every get request