parent
8642a46352
commit
f02e080778
|
@ -327,7 +327,7 @@ Here's how we could use a while loop to find how many tries it takes to get thre
|
|||
```{r}
|
||||
flip <- function() sample(c("T", "H"), 1)
|
||||
|
||||
flips <- 1
|
||||
flips <- 0
|
||||
nheads <- 0
|
||||
|
||||
while (nheads < 3) {
|
||||
|
|
Loading…
Reference in New Issue