Well, java.util.Random has a method nextDouble() which returns a number between 0.0 and 1.0 . You can use that, applying simple arithmetic to change the range of the value. If you have trouble, show us what you've done so far and we can tell you where any problems might lie.
Isn't that as simple as taking the result of Math.random() and subtracting 0.5?
If you care about the exact boundaries, there might be a problem. Math.random() gives a number greater than or equal to 0.0 and less than 1.0. So Math.random() - 0.5 gives a number great than or equal to -0.5 and less than 0.5. Is that close enough, for your application?
Note that Java programmers usually use the java.util.Random class, rather than Math.random() method. To understand why, read the Java API documentation on both. [ September 11, 2006: Message edited by: Peter Chase ]
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.