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
The report server installation is not initialized and i can not initialize it
(vb.net) How to wordwrap a cell in a datagrid
How do I import data from excel directly into a sharepoint calendar?
How to truncate (GridView)BoundFiled's string value using DataFormatString?
Webcam VX-5000
a generic way to capture the passed in parameter values in a SQL Stored Procedure
creating users in MS Access
Message size limited using SendObject?
Publishing Site
How do I move a worksheet from one spreadsheet to another, while keeping all formulas exactly the same (so it doesn't move the file name with it)?