I am trying to run a simple sim that I have done a million times. simulate three dice and take the sum. For some reason when I am assigning my code to a variable it keeps returning the same value over and over. I have cleared my environment and set.seed is not being used. my code is simple
sim <- sum(sample(1:6,3)
Has anyone else ever had this problem?