Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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
success.

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,
Christofer
(cedling@sociology.su.se)




  • 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