Fixed a randomization bug

In the getNextRandomViewID() method