print(sample(-50:50, 10, replace=TRUE))
can you please explain the impact/usage of replace in the above code.