support multi-layer
use DirRand
Merge pull request #6 from s10018/yk-twww

Yk twww