If R is a random number, R has to be in the interval of -1 and 1, i.e, -1<R<1. Any idea?