How can i create a random array of floats from 0 to 5 in python

Norah Jones nh.jones01 at gmail.com
Tue Mar 12 18:11:10 CET 2013


I want to create a random float array of size 100, with the values in the array ranging from 0 to 5. I have tried random.sample(range(5),100) but that does not work. How can i get what i want to achieve?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130312/57d563b2/attachment.html>


More information about the Python-list mailing list