Skip to content

Instantly share code, notes, and snippets.

@cruftyoldsysadmin
Created May 22, 2020 12:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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