Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
dragnet
Member
 
Status: Offline
Posts: 38
Join Date: Jan 2010
Default 03-22-2010, 10:05 PM

That was the first techique I tried using when you showed me your 'integer only' fix earlier. I tried setting a global to the rounded number and then using it as min and max in the random function. Did not work for me, but I am using Alice 2.2.
   
Reply With Quote
Old
dragnet
Member
 
Status: Offline
Posts: 38
Join Date: Jan 2010
Default 03-22-2010, 10:13 PM

Actually, thanks it did end up working. Not sure why it did not work when I tried earlier, but if you randomize the global with a min and max set to the globals current value it does work.

Thanks again.

By the way is there any way to add functionality to the Alice engine by writing Python scripts? I would imagine you would need the source code for the Alice IDE to do so.

I'll have to download the source and look at it one day when I have time.
   
Reply With Quote
Reply


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.