matlab这段代码如何写? 5
1.SetSeed=9999002.Lessthan8digits,padwithleadingzeros:009999003.Middle4digitsare:9999...
1. Set Seed = 999900
2. Less than 8 digits, pad with leading zeros: 00999900
3. Middle 4 digits are: 9999
4. 9999^2 = 99980001. Normalize and return random number.
5. Find middle four digits 99 9800 01.
6. 9800^2 = 9604000. Normalize and return random number.
7. Find middle four digits 96 0400 01.
8. 0400^2 = 160,000. Normalize and return random number.
9. Less than 8 digits, pad with leading zeros: 00160000.
10. Find middle… (continue until desired number of random numbers are returned).
Create a histogram of 1000 draws 展开
2. Less than 8 digits, pad with leading zeros: 00999900
3. Middle 4 digits are: 9999
4. 9999^2 = 99980001. Normalize and return random number.
5. Find middle four digits 99 9800 01.
6. 9800^2 = 9604000. Normalize and return random number.
7. Find middle four digits 96 0400 01.
8. 0400^2 = 160,000. Normalize and return random number.
9. Less than 8 digits, pad with leading zeros: 00160000.
10. Find middle… (continue until desired number of random numbers are returned).
Create a histogram of 1000 draws 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询