Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
Initialize Random Integer???
Old
cpeace
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jul 2021
Exclamation Initialize Random Integer??? - 07-22-2021, 02:48 PM

I am trying to get patches of thistle to pop up at random, and I cannot initialize the random integer to pull from the array. My class is using the Alice 3 in Action with Java textbook that came out in 2015, and I realized today that the textbook doesn't match the version of Alice I have. If anyone knows a workaround, I would REALLY appreciate it!!! This is due Sunday

I uploaded the file. I really REALLY need help. Thanks in advance!
Attached Files
File Type: a3p Project5.a3p (33.8 KB, 1 views)
   
Reply With Quote
Random Array Index
Old
djslater107
Administrator
 
Status: Offline
Posts: 190
Join Date: Jan 2007
Default Random Array Index - 07-23-2021, 08:55 AM

Send me an email don@alice.org if you would like a screenshot. I cannot seem to attach one right now, for some reason.

Click on thistle in the Move Up instruction.

From the drop-down menu that appears, select thistlePatch[???] at the bottom of the menu then select your random number variable from the sub-menu.

Let me know if you have any other questions.

I hope the helps.

Don Slater
Alice Project


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Old
cpeace
Junior Member
 
Status: Offline
Posts: 2
Join Date: Jul 2021
Default 07-23-2021, 09:45 AM

Thank you! I will need a screenshot. For some reason, some of my thistles think they're rockets and are lifting offscreen.

Quote:
Originally Posted by djslater107 View Post
Send me an email don@alice.org if you would like a screenshot. I cannot seem to attach one right now, for some reason.

Click on thistle in the Move Up instruction.

From the drop-down menu that appears, select thistlePatch[???] at the bottom of the menu then select your random number variable from the sub-menu.

Let me know if you have any other questions.

I hope the helps.

Don Slater
Alice Project
   
Reply With Quote
Reply

Tags
random function

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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.