Sunday, October 30, 2011

Lesson Two: Random Number [Update: Lesson Learned]

Give me a random integer from one to three.
Call Random Products on 10221 Sweet Valley in Cleveland?

No, Siri, I want you to return either 1, 2, or 3 based on a random number algorithm. You can ask your friend Alpha with the query "random integer from 1 to 3" or "RandomInteger[{1,3}]". You already know how to ask Alpha to flip a coin, which is quite wonderful. But if I have three children and I have only one piece of cake, I could really use some help quickly deciding which one to give it to.

Thanks,
User

Update:
Wolfram random integer between 0 and 3.
2


Wow, Siri, you pick things up pretty quickly.

Thanks, 
User

No comments:

Post a Comment