Removed this-> everywhere, fixed Qt.
Replaced random function with my random class.
Fixed things