Weinto Blog

Categories


Several methods to get a random positive or negative number

Nicolas BagesNicolas Bages

Last month a friend asked me how to generate a positive or negative number randomly in javascript. Basically, how to generate 1 or -1 randomly.

Comments 0
There are currently no comments.