Minimal functions on the random graph