Вы находитесь на странице: 1из 2

Random = 0 to 1

Same as the first picture. Minimum between preakpoint and 1-breakpoint) want to do many tria s! add up en"ths of short pieces and then di#ide by the number of tria s to "et the a#era"e en"th $ota "ets itse f p us an ad%ustment to &'$( a new tota ) you %ust modify the new tota from the o d tota

*or k "oin" from 1 to n( for k=1+n

$he for body ,hi"h i"hted in b ue) is ooped n times. Must define n in the be"innin". -oop must be defined in a #ariab e! in this e.amp e! it is k.( pause( = stops the pro"ram momentari y / "ood for debu""in"

end( e.its out of the oop Remember to define tota (0 1+1+n = from k "oin" from 1 in steps of 1 to n) without the midd e! it is 1SS2M'3 that the step si4e is 1

Вам также может понравиться