Creating random integers with distribution schema

23 Views Asked by At

I need to create an array that includes 0..5 integers. I'm able to create them randomly. But I need to create them according to below distributions. How can I get below distributions? Distribution

Ps: I'm using numpy to create the array.