rand bytes util function
use strconv.FormatInt instead of fmt.Sprint