Hello!!
I have an array filled with figures stored in an input file. My program has read the input file, and filled the array with the contents.
I also have a random number generator. I have made this make 2 random numbers between 0 and 1 at a time. I use a seed file to ensure the different runs each time.
My array looks like this:
1 0 0
2 0 0
3 1 2
4 1 2
5 3 0
I would like to have a 4th and 5th column to my array, and in the spaces next to my previous data, store the 2 random numbers my generator makes. So for example, it may look something like this:
1 0 0 0.5 0.9
2 0 0 0.1 0.2
3 1 2 0.3 0.8
4 1 2 0.7 0.2
5 3 0 1.0 0.7
Could anyone give me a hand with the code?
Thanks in advance!!