add Random method