(double)rand() / RAND_MAX * 2 - 1