Advertisement
DaxSoft

dsadsadasdas

Dec 15th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def equationRandom(n)
  2. ( (n+1) + (n + (rand(2) == 0 ? rand(3) : -rand(3)) ) ) / 2
  3. end
  4.  
  5. # exemplo com a força do herói
  6.  
  7. equationRandom(actor.atk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement