I have this formula:

(x + y + z + t)/4.8 = 3.7

I want to be able to generate random numbers (integer) from 1 to 8 for all variables in order to get to that 3.7 final result. 

I tried nested loop but somehow it didn't work :( I'm learning Javascript.

I appreciate every help.