Method: Core::Particle#random_angle
- Defined in:
- lib/particles.rb
#random_angle(bool) ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/particles.rb', line 46 def random_angle(bool) angle = 0 if bool angle = rand(360) end return angle end |