Random functions to train on PHP