[pmwiki-users] Rand HexRand

Hans design5 at softflow.co.uk
Mon May 12 12:47:46 CDT 2008

Monday, May 12, 2008, 6:30:04 PM, Dominique Faure wrote:

> The MarkupExprPlus recipe already provides the 'sprintf' function
> which is able to format numbers the way you want, as in:

> {(sprintf "%x" (rand 1 255))}

Oh good!


{(sprintf "%02x" (rand 1 255))}

will give you a random two-digit hex number


More information about the pmwiki-users mailing list