When I need a unique string I use $ticks... With $rand there is always the chance of falling twice on the same result wink