Fixed bug where I called rand() instead of randomU()
Fixed rand() bug
Fixed bug in loop
Restrict loop