I'm sure I'm being very stupid, however I can't get a random decimal number using the rand() function. I did this somehow in a previous project however I lost my files

I was trying

rand(1.1,1.9);

which doesn't work. How can I do this?

PHP 4.something

Thanks