I know this problem is easy, but I can't figure it out by myself. I'm trying to generate 100 random numbers and then plot a histogram. For some reason, when I'm trying to run it, my Linux terminal only gives me a "Segmentation error" message.
Thank you, ne555!
I realized I should declare the size of the array, so I declared it as 10; I also fixed the integer division, but I'm still getting a segmentation error message when trying to run the program compiled...