I tried to get around this problem, but I cannot find a simple solution for it.
I have a dynamic grid, articles are placed on the grid, but have different widths and heights. This width and height of these different articles can change when you visit the site, but only when adding a new article.
The problem is that I have a logic that uses mt_randto generate random numbers within the range (to fit in the layout grid), is there a way I can pass the seed (planning on using the latest article id), so that random numbers are consistent until a new article is introduced? I wanted to use it mt_srand, but there seems to be no easy way to limit a random number within a range.
Thank.
source
share