in reply to Formatting randomised data
$conduit_random = sprintf("%04d", 1 + int(rand(9999))); [download]
You need the 1 +, as you won't get 9999 otherwise.