change rand(1)  to  rand(2) 

the value of rand(1) was always equal to 0 ,so
it should be  rand(2)

 reference to https://github.com/rathena/rathena/commit/17bace0ae6678110b4ed24e4f1860aee27ee151f