Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Setting variable as random number
Status: Offline
Posts: 18
Join Date: Dec 2015
Post Setting variable as random number - 12-24-2015, 07:45 PM

Simple question:

I have declared a variable, and have given it a starting value of 1. Now I would like to, within a method, set the variable to a randomly generated number. Where do I find the function to do this??
I know it's staring me in the face and I just can't see it!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.