For an array with range $n$ filled with random numbers ranging from 0 (inclusive) to $n$ (exclusive), what percent of the array contains unique numbers?
I was able to make a program that tries to calculate this with repeated trials and ended up with ~63.212%.
My Question is what equation could calculate this instead of me just repeating trials.
Your number is suspiciously close to $1-1/e$. The fraction of values represented exactly $k$ times in your array should be close to $\exp(-1)/k!$, so it looks like your program counted the number of distinct values in the array, rather than the number of values represented only once.