Random.generate OnResult (Random.int 1 6)
Call the given generator to produce a value of type Int, then use the msg constructor "OnResult" on the generated Int to produce a message and finally pass that message to my update function to get the next state of the program and your next command.