Getting wrong return on Rand()

BlitzMax Forums/BlitzMax Programming/Getting wrong return on Rand()

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What numbers will you be dealing with?
Could you create your own function which adds 100 to min/max?
Function small_rand:Int(Minvalue,maxvalue)
   startvalue=minvalue+100
   endvalue=maxvalue+100
   mynum=Rand(startvalue,endvalue)
   Return mynum-100
End Function
For x = 1 To 100
  Print small_rand(-1,1)
Next

?