Place tiles at random positions?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

IM does not provide methods to specify a random number.

Generate some random numbers, appropraite for the API and then use them.
For example in shell you can
x_pos=`perl -e 'print int(rand() * 750)`
some shells like BASH have some built in methods, and Perl and PHP has there own generation methods.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply