@rstub if you don't use rowwise() there, every row receives the same random value out of runif() because it's just executed once and the result is assigned to all roes in the mutate()
@aesthr This should only happen if you create only a single number. If you create a vector of the correct length, like in the base R code, that should be used as new column in your data frame.