How to produce a random number?

Hello everyone.
I’m trying to produce a random number which is between 0 and 20 in every fifth second.
But I’m failed to work it out.
Could anyone help me ?
Thanks!

rand(int($T5))
rand(.1 + int($T
5))

Dear Greg, please can you explain me how do you have an output of this script?

Than you