Minimal functions on the random graph and the product ramsey theorem