Will this python script work as intended? I want it to plug random numbers into an equation until it gets 187.2
<pre><code>print("Getting possible numbers")
import random

h1 = random.uniform(0,30)
h2 = random.uniform(0,30)
h3 = random.uniform(0,30)
t = random.uniform(0,30)

baset = .5 * t * h3
volumeti = baset * h2
baser = t * h2
volumer = h1 * baser
volumetotal = volumeti + volumer
c = 1

if volumetotal == 187.2:
  print("h1=", h1, "h2=", h2, "h3=", h3, "t=", t)

while volumetotal != 187.2:
 c += 1
 print("Wrong, trying again", c)
</code></pre>

<p>It will find the volume of a hexagonal prism, but it takes a VERY long time and I have not gotten an output yet.</p>
