Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
declare
|
||||
Xs = {MakeList 5} %% a list of 5 unbound variables
|
||||
in
|
||||
{ForAll Xs OS.rand} %% fill it with random numbers (CORRECT)
|
||||
{Show Xs}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
Arr = {Array.new 0 10 {OS.rand}} %% WRONG: contains ten times the same number
|
||||
in
|
||||
%% CORRECT: fill it with ten (probably) different numbers
|
||||
for I in {Array.low Arr}..{Array.high Arr} do
|
||||
Arr.I := {OS.rand}
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue