Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
Dim sum As Decimal = 1 Dim lst As New List (Of Decimal) Dim n As Integer = 10 For i As Integer = 1 To n - 1 Dim d As Decimal = Rand.NextDouble() Do While sum <= d if d > 0.1 and d < 0.4 then d = d / 10 Loop end if lst.Add (d) sum = sum - d Next lst.Add (sum) Output.Show (String.Join (vbcrlf, lst.ToArray)) 大神,这代码加上条件后就直接死机了,求助啊 |