MathGroup Archive 2006

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

Search the Archive

Re: getting one random number


You were close. Now discover With!
For with With you can first draw a random number and then use it in
calculation in more places. Look, I modified your definition just a
bit:

l[dist_] := With[{x = Random[]},
  Map[# < x &, k[dist]]]

Bye.


  • Prev by Date: RE: Unevaluated a[[1]]*a[[2]]
  • Next by Date: Re: getting one random number
  • Previous by thread: Re: getting one random number
  • Next by thread: Re: getting one random number