MathGroup Archive 2005

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

Search the Archive

Re: random array of n 2-tuples

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53811] Re: [mg53771] random array of n 2-tuples
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 28 Jan 2005 02:43:58 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

What are the elements of your 2-tuples? As an example I'll take it to be
digits from 0 to 9.

randomdigit := Random[Integer, {0, 9}]

Table[{randomdigit, randomdigit}, {20}]
{{9, 6}, {1, 7}, {2, 0}, {8, 4}, {8, 5}, {1, 1}, {1, 6}, {5, 7}, {1, 3}, {9,
    7}, {0, 1}, {6, 8}, {9, 8}, {0, 5}, {5, 7}, {3, 0}, {7, 5}, {4, 1}, {8,
    9}, {7, 7}}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/



From: elparedblanco [mailto:cire1611 at gmail.com]
To: mathgroup at smc.vnet.net

Sorry for the neophyte question.  I need an array of n 2-tuples in the
form:  {{2,3},{5,1},{3,9}, etc.}.  Can someone show me how to do this.
Thanks





  • Prev by Date: Re: BDD
  • Next by Date: Re: Re: Graphics'Master in 5.1
  • Previous by thread: Re: random array of n 2-tuples
  • Next by thread: BDD