Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello,
i want to generate random number and image at different time interval.Actually i am working on lottery web app.This app required that random number and image will be generated at different time interval.we also enable admin to carry out this process automatically or manually.
Posted
Comments
OriginalGriff 21-Jul-12 8:21am    
What do you mean by "a random image"? A random number is easy to understand, but what is a random image?
Kenneth Haugland 21-Jul-12 8:31am    
Grayscale, color what? In short we need more info... Any requrements? You can generate random numbers with the Random class, and you can set the individual bytes in a picture array. So what is the problem?
Sandeep Mewara 21-Jul-12 9:20am    
Not clear.
Use the "Improve question" link to edit your question and provide better information.
WoodenLegNamedSmith 21-Jul-12 11:33am    
I think maybe he means random sequences of polygon shapes of varying sizes and colors. as in "Today's winning number is 7 and the winning picture is a red square with a yellow circle in the middle containing a black star"
OriginalGriff 21-Jul-12 12:18pm    
Or it's an ad rotator, or...

1 solution

A random image with random pixels on it ? That's trivial, just write code that iterates over the pixels and sets a random colour. Is that really what you want ? Generating random numbers is also trivial. If you don't know how to do that, and don't know how to find out, you can't know how to use google, or own any C# books. This sounds to me like homework, you should talk to your teacher if you're this lost. No way are you writing a lottery app that will be used for real, if you don't know these things.
 
Share this answer
 
Comments
Espen Harlinn 22-Jul-12 14:10pm    
I think he wants an image that shows the number, not garbage
Christian Graus 22-Jul-12 17:21pm    
I thnk so too, but I want him to ask clearly before I'm committed enough to answering.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900