Microsoft
Software
Hardware
Network
Question : Randomize distribution of images
I have a bunch of images I am displaying on a web page.
I want to randomize the padding so the the images are not all in a straight line. Kinda "NASCAR" style where the placement is kinda random and disorgainzed.
I'll try to find an example of what I have in mind!
Answer : Randomize distribution of images
Use a random function and apply to all images and the padding property
for all images, do:
Random random = new Random();
int randomNumber = random.Next(min, max);
apply randomNumber on current image padding property
Note: It is a C# solution
Random Solutions
Insert Link to File Excel 2007
Sum data in multiple fields and store number in another field
Public member 'String' on type 'String' not found
how to exclude one of the table during imp/exp?
Insert Script into Excel Workbooks as module1
DDE from MSAccess to MSExcel
How to set focus to a textbox in WPF
Restore a full backup of a disktop?
File format is invalid
Operation terminated with error -1808 (JET_errDiskFull, No space left on disk) after 8846.125 seconds.