small changes about random number generator
fix problem about label