Re: Problems with Random
- To: mathgroup at smc.vnet.net
- Subject: [mg26042] Re: [mg26027] Problems with Random
- From: BobHanlon at aol.com
- Date: Sat, 18 Nov 2000 23:07:58 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 11/17/00 4:31:12 AM, michael.walther at datenrevision.de writes: >According to THE BOOK I schould get a random number for a normal >distribution with > ><<Statistics`ContinuousDistributions` > >x = Random[NormalDistribution[50,2.1] ] >But I got > >Random::"randt": "Type specification NormalDistribution[50,2.1] in >Random[NormalDistribution[50, 2.1]] should be Real, Integer, or Complex.". >I get a similar message for other distributions. What is wrong > There is something wrong with your Get (<<) statement--not clear what. Consequently, the add-on package is not being loaded. Using a copy of your statement it did not work on my machine. However, after entering a new statement (I always use Needs), it worked fine. Needs["Statistics`ContinuousDistributions`"] x = Random[NormalDistribution[50, 2.1] ] 48.8952 Bob Hanlon