Python Forum
fill an empty matrix with random floats
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fill an empty matrix with random floats
#3
I think you want res[:,0] = np.random.rand(5) + 1.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: fill an empty matrix with random floats - by ichabod801 - Oct-29-2018, 12:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert Strings to Floats samalombo 2 2,498 Jun-08-2020, 10:45 AM
Last Post: hussainmujtaba
  Matrix with bounded random numbers Felipe 2 3,729 May-21-2017, 11:31 AM
Last Post: Felipe

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020