var to let
int conversion out of loop
random values generator in swift, makes no difference, though