numpy random choice

Solutions on MaxInterview for numpy random choice by the best coders in the world