Hi fellow code lovers.

Guess I should first tell you my case:

I'm creating a game that is supposed to give out, lets say 4 numbers, and four operators (+ - * /).

And the numbers (or a subset) and/or the operators should be able to produce a number, e.g: 24.

Anyone have a idea how I can let's say: Random generate 4 numbers, then check if they will be able to provide 24 given

the option to place the numbers and the operators at whichever place you want.

I've been struggling to find a way to validate the numbers produced.

If anyone got a link, an example solution, or something similar, it would be extremely appreciated.

Kind regards, LG.