I forgot to remove '$random' from my code; that was another way that i tried to make it work, but it failed too.