2.0 version: fixed random number bug. fixed crash problem...