replace randomHelper

use new version randomHelper and randomExtension.