答案 0 :(得分:1)
您可以使用set.seed(100)
mu <- 5 # or whatever your mean is
n <- 10 # the number of random values you wish to generate.
x <- rnorm(n, mean = mu) #the function's default standard deviation is already 1
x
[1] 4.497808 5.131531 4.921083 5.886785 5.116971 5.318630 4.418209 5.714533
[9] 4.174741 4.640138
生成随机值:
money=int(input('how much you make an hour'))
final_yearly=money*2000
print(final_yearly)