MathGroup Archive 1998

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

Search the Archive

lattice definition: help

I would be most grateful if someone could help me with this one. I've
tried to solve the problem with the "Table" function without much

I wish to generate an n*n lattice with the following characteristics:

1. Each cell in the lattice can be in one out of three possible states,
i.e. A,B,C.
2. The distribution of states across the whole lattice is defined by
user input, i.e. 30% A's, 20% B's, 50% C's. 3. Given the defined
distribution, each cell in the lattice should be randomly assigned a
state (A,B or C).

Any suggestions appreciated,

  • Prev by Date: Re: Mathematica frustrations...
  • Next by Date: Re: New version of PowerSeries.m
  • Prev by thread: Compiling
  • Next by thread: prograMing: trees and indexes: IndexSetSort