Re: getting one random number
- To: mathgroup at smc.vnet.net
- Subject: [mg65176] Re: getting one random number
- From: albert <awnl at arcor.de>
- Date: Thu, 16 Mar 2006 06:33:37 -0500 (EST)
- References: <dvas8g$c37$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Kevin, > When I exicute the line below, mathematica takes a new random number for > each element in the list "k[dist]" ... because you said so :-) > l[dist_] := Map[# < Random[] &, k[dist]] One of million possibilities would be: l[dist_] := With[{r=Random[]},Map[# < r &, k[dist]]] hth, albert