How to do a random Monte Carlo scan and getting the outputs in a data file
问题 I have some python program let's say 'Test.py' it has a class and inside this in the init I have to introduce three random variables. import math class Vector(): def __init__(self,vx,vy,vz): self.x=vx self.y=vy self.z=vz def norm(self): xx=self.x**2 yy=self.y**2 zz=self.z**2 return math.sqrt(xx+yy+zz) Now I made a run file 'Testrun.py' which calls this file and then for each dataset it produces one result import math import numpy as np from Desktop import Test def random_range(n, min, max):