R/draw_i.R

Defines functions draw_i

Documented in draw_i

draw_i <-
function() {
  E=runif(1)
  L=1
  if(E<0.5){L=-1}
  result <- L
  return(result)
}

Try the binomialcftp package in your browser

Any scripts or data that you put into this service are public.

binomialcftp documentation built on May 2, 2019, 2:46 a.m.