Python Forum
random matrix, with some special feature
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
random matrix, with some special feature
#5
No problem, once you told me the random.choice() function, I got what I needed.

Is there any difference between list([blabla], [bla]) and [[blabla], [bla]] ?

Or the interpreter handle them as synonyms, and the processor will do the same things (and it takes the same time)? I have to generate this matrix many times, so speed is important.
Reply


Messages In This Thread
RE: random matrix, with some special feature - by PhysChem - Aug-28-2018, 06:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  define a diagonal matrix from a matrix amalalaoui 1 2,432 May-15-2019, 01:12 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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