Since when does MAX mean LESS THAN?
Alice is really frustrating to work with because of simple nonlogical elements like this...
[IMG]http://i.imgur.com/7xwOI.jpg[/IMG] 
You sir seem to just be unfortunately unlucky! I just plugged that same program into Alice and got a satisfactory spread of numbers! Alice just didn't pick four for a bit for you apparantly!

I've had the same thing happen to me before. I think it was a bug that was fixed in the updates.
I don't suppose your copy of Alice is old? 
Less of a bug and more of an offbyone error. See, when programming people tend to make lots of offbyone's, especially when concerning inequalities. They're really hard to find because they don't generate an error, and are somewhat hard to find under a massive stack of code. Likely all the guy had to do was change the operator for the max random number from < to <=.

Random number
This is not a bug. Random number returns a Double value between 0 and 1 (not including 1). For minimum, Alice simply add the "min value" to the generated number. For maximum, Alice multiply the "max value" with the generated number.
Note: This is not something Alice made up. Edit: "integerOnly==true" returns the int of the Double value and not the Round to prevent you from getting 1. random number min=0, max=1, integerOnly=true always return 0 0.12 returns 0 0.55 also returns 0 0.99 also returns 0 By definition of the Random number [ min, max ). 
@aikmin
So how exactly is a number calculated? I tried what you said : [IMG]http://i.imm.io/blMw.jpeg[/IMG] @Mr Kidnapper  Not really a bug but a programming error I agree. But.. doesn't bug == programming error? @x2495iiii I am using Alice 2.2, and I have the latest version of Java installed. @Powerhouse64 can you post a screenshot? I want to see this :o 
This is not a "bug." In most programming languages the start of something is not '1' it is '0'
So at the moment disregard the minimum value and assume it is 0. So your maximum is whatever you want say 6. So you can get 0 , 1 , 2 , 3 , 4 , and 5. Now count how many numbers that is. 6 The maximum really specifes how many numbers you can display starting with 0. That is why it is a bit odd. :) Let's take your first example. Min : 1 Max : 4 However remember that the computer starts with 0 so instead make it : Min : 0 Max : 4 So what you would be able to display 0 , 1 , 2 , 3. Note how we have 4 numbers. But wait we have a problem your output did not show 0.:eek::eek: So this is what I [i]think[/i] Alice does. It finds the numbers we just found above and then uses the minimum value to determine how many of those it should display. In your case since you specified 1 it would display 4  1 or 3 different numbers. Them being 1 , 2 , and 3. Hope that is not too confusing. :) 
All times are GMT 5. The time now is 09:36 PM. 
Copyright ©2022, Carnegie Mellon University
Alice 2.x © 19992012, Alice 3.x © 20082012, Carnegie Mellon University. All rights reserved.