I want to generate a list of random float number in range [0, 1] in Python. Something same to function random.random_sample(size)
but I want to its step which is the size between each values larger than a number. For example all steps are randomly, not uniform but must be larger than 0.05. The result should be an array like this:
[0.07727264, 0.12850264, 0.19339824, 0.842385484, 0.17137362]
Is there any idea how can I do that?
Aucun commentaire:
Enregistrer un commentaire