Stupid bug fixed.

Confusing range and rand function. No comment.