I use random(100); for example which would be 0-100 or random(100)50; 50-100 works fine for me;

If your doing it in a comparison try doing like
Code:
var r;
while(1){
r = random(100); wait(1);
while(example > r)
{
blahblahblah wait(1);}



"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi