how to do math with random numbers

Godot Version

Godot 3.2.3 (or any Godot 3 [NOT 4]

Question

Ok I is my code

var rng = RandomNumberGenerator.new()
var a
var b
var c
var temp1
var temp2
var temp3

func _physics_process(delta):
temp1 = rng.randi_range(1,100)
temp2 = rng.randi_range(1,100)
temp3 = rng.randi_range(1,100)

i use this for addition, or this for multiplication
a = temp1 + temp2 a = temp1 temp2
b = temp1 + temp3 b = temp1
temp3
c = temp2 + temp3 c = temp2 * temp3

so how do I do Subtraction or division

I.E (without errors or 8.9 etc..)
random1 - random number2 random1 / random2

a show three possible choices letting the player pick

the reason is in my game you walk up to a dragon he ask you a math question with possible answer

if you get it correctly the dragon dies gives you a random number of coins (etc.)

but if you get it wrong you lose a life and start the the level over.

Format your code properly.

Here’s what I would do: first I would pick a random number from 2-12, this number will be the answer to the division question. Then I would pick another random number from 2-12, let’s call this one x. Then, with those random numbers obtained, I would set y = x * answer. And now I could show the math question to the user: " y/x = ? "

This has the added bonus of being able to easily choose what the possible answers are. An answer of 0 or 1 would be too easy (e.g. 0/11 = ?, 14/14 = ?), and an answer above 12 would be too difficult for the average person.