Play with the unix timestamp, for example, as I write this it is :
$timestamp = 981061539;
Which stems from doing :
$timestamp = time();
This is the number of seconds since the epoch, it increases by one every second. Base your number off it. Create some little algorithm and go with that, no need to store anything.