Price fraction: Difference between revisions

→‎{{header|Picat}}: Split into subsections
(→‎{{header|Picat}}: Split into subsections)
Line 3,310:
 
=={{header|Picat}}==
===Approach 1:===
<lang Picat>go =>
_ = random2(),
Line 3,361:
0.62 = 0.74</pre>
 
Approach 2: ===Using a fact table.===
<lang Picat>%go2 Using a "fact table" of the rules=>
go2 =>
_ = random2(),
foreach(_ in 1..10)
Line 3,407 ⟶ 3,406:
0.58 = 0.7
0.0 = 0.1</pre>
 
 
=={{header|PicoLisp}}==
495

edits