in reply to Formatting randomised data

Thanks for all the speedy replies and the help!

I thought that I could only use sprintf when displaying/exporting the data - didn't realise that I could use it in this way.

Thanks again! :)

Replies are listed 'Best First'.
Re^2: Formatting randomised data
by bart (Canon) on Jun 19, 2005 at 22:16 UTC
    I thought that I could only use sprintf when displaying/exporting the data
    No, that must be printf you're thinking of. printf actually prints the resulting data (except that it ignores $\), while sprintf just returns the value, ready to store into a variable, for example.