# step_rand proc

Source: https://ref.dm-lang.org/proc/step_rand

### Format
> `step_rand(Ref,Speed=0)`

### Returns
> 1 on success; 0 otherwise.

### Args
- `Ref`: A mob or obj.
- `Speed`: Speed to move, in pixels. 0 uses Ref.step_size.


Move Ref randomly.

### See also
- [get_step_rand proc](https://ref.dm-lang.org/proc/get_step_rand.md)
- [walk_rand proc](https://ref.dm-lang.org/proc/walk_rand.md)
- [step_size var (movable atom)](https://ref.dm-lang.org/atom/movable/var/step_size.md)
