Display one post randomly from category on home page

The answer it seems was using ‘RAND’ instead of ‘rand’.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)