Thank you, all, for your helpful answers and suggestions! I've been playing around with all of them all morning. I like cybereality's use of an array that excludes unwanted numbers, which would be very simple and easy to implement when working with smaller ranges of numbers. But that method would need some LONG arrays when dealing with bigger ranges of numbers. I adopted from your method using randi( ) instead of my floor(rand_range( ) ) method.
vmjcv's concept of a variable for the whole range of valid numbers and a variable for excluded numbers is a brilliant concept, but I couldn't get the "for value in allNumbers:" part of it to work, at least plugging it in the way I am trying to use it. This is an idea I'll come back to when I understand more about for loops.
Thanks again to kequc for your original answers and subsequent clarification. I'm still a little intimidated by the layout of your function since I'm not yet comfortable with using "while" and still don't fully understand how to properly implement the parentheses on functions. However, I was able to implement the concept of checking for the value of my variable to be greater than the bottom value of my excluded range and less than the top value and set that as a boolean which tells my function to either accept that value and proceed or try again and re-randomize until that boolean is false. I simplified this method and implemented it in a way that uses the elements I currently am comfortable with, though it may be a little more verbose. In this example I am excluding numbers from 3 to 7 within the scale of 1 - 10 and having the functions loop with each other. It works perfectly in my project!
var rnd = null
var exclude = false
func ready():
MixUp()
func MixUp():
rnd = randi()%10 + 1
if rnd >= 3 and rnd <= 7:
exclude = true
else:
exclude = false
if exclude == true:
MixUp()
else:
countdown()
func countdown():
yield(get_tree().create_timer(3), "timeout")
print("This is a useable number!" + rnd)
MixUp()
So ultimately, the answer for me, all the other complicated details aside, was using a boolean determined by less than and greater than operators. Knowing this, I think I'll experiment with using the clamp( ) method to for excluded ranges. Let me know if you folks like this solution. Thanks again, everyone!