Raised This Month: $ Target: $400
 0% 

random_num


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-05-2014 , 20:21   Re: random_num
Reply With Quote #8

Quote:
Originally Posted by bol View Post
Ty! Black Rose for testing.

fysiks is right I dont know what the % operator does thought it divides.
How can I make it work so that it takes a deathshot randomly between 2 - 12?
It doesn't have to be specifically between these two numbers as long as it randomly gets taken within the first couple of deaths.
% is the modulo operator. It gives you the remainder of integer division.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode