Mmm, I can only think of a scripted way which I often use...
First Step!
Initialize the variable to contain only the numbers that would appear into an array. This can be done either manually or scripted. I recommend it to be done manually :
You want to initialize it only once! Unless you want to re-initialized the value.
Second Step!
Store the randomized number to another variable :
This is the code :
$gameVariables.value(ID).splice(Math.randomInt($gameVariables.value(ID).length),1)
Change ID to the variable ID that contain the array.
Extra Step! (optional)
This is only to avoid error when the content are emptied. Make a conditional branch that check if the array are empty or not.
This is the code :
$gameVariables.value(ID).length > 0
and yes, change ID to the variable ID that contain the array.
Then put the executed command (second step) inside of it.
Aaand you are done!
It shoud've looked like this :
Var B now contain randomized number inside Var A, and A will lose that number.