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
How can I check when CType fails?
Active Sync OMA won't sync / authenticate.
Access Form selecting specific records
Left Outer Join is not working- returns duplicate company names?
How do I use the silverlight video player?
Access 2007 runtime - instaled from package solution wizard - trusted locations
Cannot Open Volume For Direct Access in Sched CHKDSK
Server 2003 Anonymous Login Event ID's
Required permissions cannot be acquired. .NET app error
Windows 98 SE - Registry - SharedDLLs - dword - purpose