//Generate Random Number Here
int ID = 0;
Random ran = new Random();
ID = ran.Next();
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · Learn .NETCSharp 13 and .NET 9 Scripting Guide (Run .cs Without Projects)Download nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
ProgrammerPosted Apr 24, 2011, 3:00 AM EDT
what if we are working with screen resolution which are initialized as x and y, and we have to place 5 balls of random colors on random positions.