a python code that uses the randomness of neural network training to find the ground state of a harmonic oscillator and its energy