If these squares are randomly generated, the size is random, the number is random, and it is guaranteed to be spelled like the picture.

through the random generation of these div modules, as shown in the figure, the minimum, (div is the smallest in the figure), the number is random, to ensure that it can finally be assembled into a rectangle, as shown in the figure, how to do this requirement? I would like to ask all the bosses, thank you ~

clipboard.png

Nov.10,2021

  1. Random is not the location, but the contents of modules of the same size are random
  2. write a few more rectangle positions and sizes for random
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c00bd7-32507.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c00bd7-32507.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?