You could also have just used sample(state.name) for the same result -- sampling as many values as provided is the default.你也有同样的结果只用样品(state.name) -采样提供了许多值是默认的。 Further reading 进一步阅读 For more information about how R generates random numbers, check out the fol...