Skip to content

Instantly share code, notes, and snippets.

@cruftyoldsysadmin
Created May 22, 2020 12:39
Show Gist options
  • Save cruftyoldsysadmin/6ccdb7fdbf2bcb7f9d7040456161d73e to your computer and use it in GitHub Desktop.
Save cruftyoldsysadmin/6ccdb7fdbf2bcb7f9d7040456161d73e to your computer and use it in GitHub Desktop.
pseudo code
// 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