scifer 10 Posted April 24, 2011 I'd like to generate a random number ranging from -10 to +10. How to do that? Share this post Link to post Share on other sites
.kju 3245 Posted April 24, 2011 (edited) (random 20) - 10 Edited April 24, 2011 by .kju [PvPscene] Share this post Link to post Share on other sites
scifer 10 Posted April 24, 2011 (random 20) - 10 Thanx a lot :) ---------- Post added at 05:03 ---------- Previous post was at 05:01 ---------- Edit: slow :confused: Share this post Link to post Share on other sites
twirly 11 Posted April 24, 2011 (random 20) - 10 ???? How about (random 10) - 20 :) Share this post Link to post Share on other sites
.kju 3245 Posted April 24, 2011 random 10 = 0 - 10 0 - 10 minus 20 = -20 to -10 Share this post Link to post Share on other sites
el76 0 Posted April 24, 2011 (edited) (random 10) * -1 :o Edited April 24, 2011 by el76 Share this post Link to post Share on other sites
buliwyf 4 Posted April 24, 2011 (random 10) * -1 Genius! Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 24, 2011 random 10 = 0 - 100 - 10 minus 20 = -20 to -10 Yes, but you wrote "random (20) - 10", which is -10 to 10. Share this post Link to post Share on other sites
buliwyf 4 Posted April 24, 2011 I'd like to generate a random number ranging from -10 to +10. How to do that? Yes, but you wrote "random (20) - 10", which is -10 to 10. Exactly what scifer searched for. It´s better to close the topic now.... :D Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 24, 2011 Exactly what scifer searched for. It´s better to close the topic now.... :D God that's true. But it's sunday morning, so....yeah better close it :D Share this post Link to post Share on other sites
twirly 11 Posted April 24, 2011 random 10 = 0 - 100 - 10 minus 20 = -20 to -10 Oh yeah!! LOL! Share this post Link to post Share on other sites