Added random direction method and global variable
Fixed Scatter mode. Now correctly works