- #1
Lukejambo
- 13
- 0
Hi,
So I'm writing a programme in Fortran95 atm and I want to produce an array of 1s and 0s.
I've used a random number and random seed generator to produce 10 numbers between 0 and 1 and I want to use a NINT statement to round these random numbers to 0 or 1.
However when I try this the rounded numbers are very large which I know shouldn't happen...
Any help will be much appreciated.
So I'm writing a programme in Fortran95 atm and I want to produce an array of 1s and 0s.
I've used a random number and random seed generator to produce 10 numbers between 0 and 1 and I want to use a NINT statement to round these random numbers to 0 or 1.
However when I try this the rounded numbers are very large which I know shouldn't happen...
Any help will be much appreciated.