All your going to get in your immediate window is a check to see if the formulaR1C1 is equal to the string "=RANDBETWEEN(1,5)". I suspect this is not what you need and you wanted a random number between 1 and 5.
Use the following in your debug.print
if youneeded to store your value:
Cowsrng.FormulaR1C1 = "=RANDBETWEEN(1,5)"
Debug.Print Programrng.Value, Daterng.Value, Cowsrng.Value
Or if you don't need the value saved:
Debug.Print Programrng.Value, Daterng.Value, Application.workbookfunction.randbetween(1,5)