updated random patches and generate world set functions