Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Loops-Break/SNOBOL4/loops-break-1.sno
Normal file
5
Task/Loops-Break/SNOBOL4/loops-break-1.sno
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
input(.random,io_findunit(),1,"/dev/urandom")
|
||||
while &ALPHABET random @rand
|
||||
output = rand = rand - (rand / 20) * 20
|
||||
eq(rand,10) :f(while)
|
||||
end
|
||||
5
Task/Loops-Break/SNOBOL4/loops-break-2.sno
Normal file
5
Task/Loops-Break/SNOBOL4/loops-break-2.sno
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
* rand(n) -> real x | 0 <= x < n
|
||||
-include 'random.sno'
|
||||
|
||||
loop ne(output = convert(rand(20)'integer'),10) :s(loop)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue