MathGroup Archive 2006

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

Search the Archive

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


  • Prev by Date: Re: Converting an expression to a list of terms?
  • Next by Date: Re: Re: Best practice for naming of options
  • Previous by thread: Re: Version 5.2 Pi computation speed is simply amazing.
  • Next by thread: Re: number not fitting in