number not fitting in
- To: mathgroup at smc.vnet.net
- Subject: [mg71546] number not fitting in
- From: "JGBoone at gmail.com" <JGBoone at gmail.com>
- Date: Wed, 22 Nov 2006 05:22:27 -0500 (EST)
First let me say that i am new to this mathematica and programming
business. I am programming a random speciation. I have a list, lyst,
that is a certain range. I want to replace, at random, one part of lyst
with something that is not in the original list, speciation. When I
table this, it puts the speciation outside the list and inside the
list. Can anyone help me? here's the line that seems to be giving me
trouble.
lyst[[Random[Integer, {1, Length[lyst]}]]] = Random[Integer,
{Length[lyst]+ 1,Length[lyst] + 100}]
thanks