Random draw in python function
This may be a silly question because I'm a python novice. I'm working on a microsimulation and have defined a few python functions to update trackers and the like. In some cases, I need a random draw from a uniform(0, 1) distribution within those functions. To accomplish that, I've defined a uniform distribution and then I draw from the distribution in the python functions as follows:
rand = treeage.eval("DistForce(4)"),
where 4 is the index of the uniform distribution I defined.
Is there a more computationally efficient way to draw from a uniform distribution in a python function within Treeage?