D
D
d_morgachev2019-09-12 12:14:55
Django
d_morgachev, 2019-09-12 12:14:55

How to make a banner system with a frequency of impressions?

I am looking for a way to implement the simplest system of advertising banners on the site, it is important to be able to specify the frequency of impressions. That is, he indicated the frequency of impressions to the banner (0.0 - 1.0) and somehow banners will be displayed on the page, taking into account the frequency.
Does anyone know a module or an approximate algorithm to do this myself?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2019-09-12
@sim3x

https://stackoverflow.com/questions/4113307/python...

A
alternativshik, 2019-09-12
@alternativshik

https://docs.python.org/dev/library/random.html#ra... - specify weight

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question