Global $__hRandTimer = TimerInit() Func _Random($min, $max) $__tmp = TimerDiff($__hRandTimer) $__tmp = StringRight($__tmp, 2) $__tmp = ($__tmp * $max) / 100 If $__tmp < $min Then $__tmp = $min Return Int($__tmp) EndFunc ;==>_Random