Thank you for responding, this is it right here
sim <- sum(sample(1:6,3, replace = TRUE))
every time i run sim it returns the same number. Then if i take a break and try again it returns a different number over and over. I cleared history and environment and that is the only thing in my rmd.
Its storing it as a value, do I need to make it a function?