位置:F:\pyqt_practice\0514test_one_shot_training_sequencepy\testrandom.py
import random # use venv virtual environment
#***********************one test random.random()********************************************88
# def random(self):
# """Get the next random number in the range [0.0, 1.0)."""
# return (int.from_bytes(_urandom(7), 'big') >> 3) * RECIP_BPF
print("random.random():",random.random())
###########################one end #########################################################33
#****************************two test random. ************************************************
# def uniform(self, a, b):
# "Get a random number in the range [a, b) or [a, b] depending on rounding."
# return a + (b - a) * self.random()
print("random.uniform(-10,10):",random.uniform(-10,10))
############################two end #########################################################33