MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Matrix question

  • To: mathgroup at
  • Subject: [mg60306] Re: Matrix question
  • From: David Bailey <dave at>
  • Date: Sat, 10 Sep 2005 22:36:26 -0400 (EDT)
  • References: <dfudth$1qo$>
  • Sender: owner-wri-mathgroup at

sandog wrote:
> i want to create a NxN matrix with zeros but i want a percentage of the matrix spots to be one at random spots any idea? cause i have no clue how to do that.
> Any help appreciated thx .

This will make a 10x10 array with a probability of 0.3 that each point 
will be a 1


David Bailey

  • Prev by Date: Re: PolynomialGCD
  • Next by Date: Re: Matrix question
  • Previous by thread: Re: Matrix question
  • Next by thread: Re: Matrix question