Rand- 16 bits only????

Miscellaneous Forums/Blitz Showcase/Rand- 16 bits only????

My post shows that the first 24 are quite random. You could solve the problem by using doing this
[/code]
n1=rand(-2114125312,2114125312)
n2=rand(-2114125312,2114125312)
n3= n1 shr 8
n4= n2 shr 24
n5=n4 shl24 + n1
[/code]
you could of course use less variables and do it all on one line but this makes it clearer.