make assignments work, implement random pick