Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Re: Random[BinomialDistribution[..]] wrong ?

  • To: mathgroup at christensen.cybernetics.net
  • Subject: [mg1080] Re: Random[BinomialDistribution[..]] wrong ?
  • From: wagner at bullwinkle.cs.Colorado.EDU (Dave Wagner)
  • Date: Fri, 12 May 1995 18:41:07 -0400
  • Organization: University of Colorado, Boulder

In article <3opku3$7h4 at news0.cybernetics.net>,
Paul A. Rubin <rubin at msu.edu> wrote:
>In article <3olugl$ql4 at news0.cybernetics.net>,
>   bzbkowal at ZIB-Berlin.DE (Axel Kowald) wrote:
>->I'm using Mathematica 2.2 on a Macintosh and I got a problem generating 
>binomially
>->distributed random numbers.
>->
>->I have:
>->
>->Needs["Statistics`DiscreteDistributions`"]
>->SeedRandom[17]
>->Table[Random[BinomialDistribution[10^6,0.01]],{5}]
>->Out-> {998486, 998486, 998486, 998486, 998486}
>->
>->Not only that the random numbers are all the same, most importantly they 
>are in a 
>->completely wrong range. One should get something around 10000 !
>
>I pasted your input statements into version 2.2.2 for Windows and got 
>something different (and a lot more reasonable):
>
>  {9996, 9954, 9854, 10107, 9837}
>
>If another Mac user can reproduce the problem, then I would suspect it to 
>be a bug in the Mac kernel.
>
>Paul

I got the same results as Paul on Mac version 2.2.2 (PowerMac).

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		princon at csn.net
		http://www.csn.net/princon


  • Prev by Date: Re: Integrate bug and workaround
  • Next by Date: Mma problem on PowerMac
  • Previous by thread: Random[BinomialDistribution[..]] wrong ?
  • Next by thread: Re: Random[BinomialDistribution[..]] wrong ?