When running the chi-squared test, are we assuming that we're running our non-random sample.n samples into a single row/coloumn for a good-of-fit-test under the chisq.test() functionto assess whether the samples are truly random? Thank you!
All the samples you are testing are random. The question is whether they are random with equal probability or not.