Hi all,can enyone give a solution ,how to emplement random function,so it could randomly select numbers from the saved text file(grid) and output in matrix . What i try to do is:Create animation project,but would like color matrix as a background.What i did so far is came up to the idea using matrix as a background,now i need create an image in .....dat file and implement random function,so then i run the program this image would be in the matrix,color.So is the random function can do it? Any ideas are welcome.Regards.
PulsarScript
0
Junior Poster
Recommended Answers
Jump to PostHard to tell for sure, but it seems to me that you want to randomize the background color. Simply make an array of the color choices and get a random index to choose the color. If you need help with using the rand() function here's a tutorial on it.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.