Matching for random systems with an application to minimal weight expansions