Re: random number generation
Posted by parisec on
URL: http://spssx-discussion.165.s1.nabble.com/random-number-generation-tp5719063p5740969.html
Hi all,
This code works great.
input program.
loop #i = 1 to 250.
- compute X =rv.univorm (.5,16).
- end case.
end loop.
end file.
end input program.
frequencies X.
Is there a way to tweak this so that it only generates numbers that 0.5 apart?
I need numbers in this range but that only jump by 0.5 so: 0.50, 1.0, 1.5, 2.0, .....15.5, 16.0.
Thanks much!
Carol