Skip to content

Instantly share code, notes, and snippets.

@vovanmix
Created March 14, 2017 07:38
Show Gist options
  • Save vovanmix/f2936930f8bf4ed338fcf6c089534dd1 to your computer and use it in GitHub Desktop.
Save vovanmix/f2936930f8bf4ed338fcf6c089534dd1 to your computer and use it in GitHub Desktop.
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment