Created
May 22, 2020 12:39
-
-
Save cruftyoldsysadmin/6ccdb7fdbf2bcb7f9d7040456161d73e to your computer and use it in GitHub Desktop.
pseudo code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize two arrays | |
ary1 = [] | |
ary2 = [] | |
// Iterate over each array | |
for ary in [ary1, ary2] { | |
// Set initial value of counter to 0 for an array index | |
count = 0 | |
// Do this 1000 times | |
while count <= 1000 { | |
// Set the array element at the count index to a random value | |
ary[count] = rand() | |
// Increment the counter | |
count += 1 | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment