I am creating a part of a game in ASP.NET (VB). There is a database with four tables (topics), and in those tables there are three items. I need the application to be able to show a random item (for example the three items are 1, 2, 3 - I just want one random entry from 2) within the table and show it on the app. There also needs to be a option to check so that that entry does not show up again when the user clicks for another random entry. How would I go about doing that?
suhaildawood
0
Newbie Poster
Recommended Answers
Jump to PostHi,
For getting random numbers you need to have a bit of code like this
Random Number Generator -- Generate Random Numbers (Int) between Rang -- Create the variables for the random number generation DECLARE @Random INT DECLARE @Upper INT DECLARE @Lower INT ---- This will …
Jump to PostMy pleasure,Happy coding ahead...
All 5 Replies
Akash Saikia
9
Junior Poster
suhaildawood
0
Newbie Poster
Akash Saikia
9
Junior Poster
suhaildawood
0
Newbie Poster
Akash Saikia
9
Junior Poster
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.