fixed php tag and removed space in rand