[Rd] bug in rbinom? (PR#448)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
17 Feb 2000 13:34:13 +0100


dtrenkler@nts6.oec.uni-osnabrueck.de writes:


> > .Random.seed
> [1]     0 21012  4461 28299
> > rbinom(10,10,.3)
>  [1] 4 5 5 1 5 2 4 2 6 2
> > rbinom(10,9,.3)
>  [1] 0 0 0 0 0 0 0 0 0 0
> > rbinom(10,10,.3)
>  [1] 3 3 2 2 3 1 3 3 3 2
> > rbinom(10,11,.3)
>  [1] 0 0 0 0 0 0 0 0 0 0

Ow!!!! The current snapshot does that too. (On Linux/i386)

>  rbinom(10,11,.3) 
 [1] 0 0 0 0 0 0 0 0 0 0
>  rbinom(10,11,.3) 
 [1] 0 0 0 0 0 0 0 0 0 0
>  rbinom(10,11,.3) 
 [1] 0 0 0 0 0 0 0 0 0 0
>  rbinom(10,11,.3) 
 [1] 0 0 0 0 0 0 0 0 0 0
>  rbinom(10,11,.3) 
 [1] 0 0 0 0 0 0 0 0 0 0

and 0.65.1 had it with size=100, but not with size=11.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._