updated with working randomiser PHP