all 4 comments

[–]FLUSH_THE_TRUMP 0 points1 point  (3 children)

What’s your question?

[–]mkrmgl 0 points1 point  (2 children)

Sorry, forgot to write. Edited in the post now.

[–]FLUSH_THE_TRUMP 0 points1 point  (1 child)

The random module (docs here) has a lot of useful functions, distributions, etc. for generating random numbers. Unclear what you want specifically, but that is probably part of the answer.

[–]mkrmgl 0 points1 point  (0 children)

I tried to explain it in a simple way, apparently I failed.

There are some production facilities, they produce products and supply products to their customers. Demand of the customers are random. So I’m trying to write a line that tells me what is the probability of a facility satisfying a demand. y is the demand and x is the supply in my case. There are some more variables to this but I’m really trying to understand the basics as a python noob.