Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def equationRandom(n)
- ( (n+1) + (n + (rand(2) == 0 ? rand(3) : -rand(3)) ) ) / 2
- end
- # exemplo com a força do herói
- equationRandom(actor.atk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement