If I remember, and I might be wrong, $r existed before $rand and $r just still exists for backwards compatibility.