RosettaCodeData/Task/Multiple-distinct-objects/Phix/multiple-distinct-objects-1.phix

9 lines
131 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
sequence s = repeat("x",3*rand(3))
?s
s[rand(length(s))] = 5
?s
s[rand(length(s))] &= 'y'
?s
s[rand(length(s))] = s
?s