Skip to content
Prev 317842 / 398506 Next

R function help!

simonj16 wrote
Any good?

ticket.ns<-c(1,1,1,1,2,5,5,10,10,10) 

draw=NULL
for (i in 1:25){
  draw[i] <- sum(sample(ticket.ns,40,replace=TRUE))
}

print(draw)

HTH

Pete



--
View this message in context: http://r.789695.n4.nabble.com/R-function-help-tp4658998p4659001.html
Sent from the R help mailing list archive at Nabble.com.