@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user