Need help with small VBasic App.

timers

Member
May 9, 2001
184
0
0
In school, we need to make a Vbasic app on anything, primarily with option buttons and checkboxes. That is not the problem. My problem is that we must also use Random Number Generators. Somehow we have to use it, and we can not do a lottery system, as our prog, and I dont want to do ticket sales. Is there anything else I can do. I wanted to make a prog on Blockbuster Video, like an "Blockbuster Video Online Ordering Form", with option buttons for the amount of stuff you order, then some checkboxes and labels, you know the norm...but how can I integrate a random number generate in there? THanks.


The function is the RND function.

 

Boogak

Diamond Member
Feb 2, 2000
3,302
0
0
Assign videos to a numbered category system, ie. action flicks = 1 - 100, romance = 101 - 200, comedy 201 - 300, etc. If you note a customer renting alot of action flicks, randomly generate a number between 1 - 100 (excluding the ones he's renting) and offer it as a suggestion.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Well, if you were going to some "real" blockbuster online (AKA netflix ;) ) what about each specific DVDs would be fixed, and what would be random? Hint: if you go into a BB store in person to rent something outside of the top 10, what might happen?

[ ed ] Boogak's idea is good too -- do both for extra credit :)
 

timers

Member
May 9, 2001
184
0
0
Originally posted by: Boogak
Assign videos to a numbered category system, ie. action flicks = 1 - 100, romance = 101 - 200, comedy 201 - 300, etc. If you note a customer renting alot of action flicks, randomly generate a number between 1 - 100 (excluding the ones he's renting) and offer it as a suggestion.

Could you explain this one more time? I dont understand it that well. I might just say "This is your order #", and assign the Random Number from 10000-11000 or so, which seems like a order #.
 

timers

Member
May 9, 2001
184
0
0
Originally posted by: DaveSimmons
Well, if you were going to some "real" blockbuster online (AKA netflix ;) ) what about each specific DVDs would be fixed, and what would be random? Hint: if you go into a BB store in person to rent something outside of the top 10, what might happen?

[ ed ] Boogak's idea is good too -- do both for extra credit :)

I dont even understand your idea. You asked me a question. heh. I dont need hints, but rather answers. ;)

 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Could you explain this one more time? I dont understand it that well. I might just say "This is your order #", and assign the Random Number from 10000-11000 or so, which seems like a order #.

He's saying action movies are in one range of numbers (say 1000-1020), romances are in another range of numbers (say 2000-2005). If the person rents one action movie then you (randomly) pick another action movie to recommend on a receipt / checkout screen

 

timers

Member
May 9, 2001
184
0
0
Originally posted by: DaveSimmons
Could you explain this one more time? I dont understand it that well. I might just say "This is your order #", and assign the Random Number from 10000-11000 or so, which seems like a order #.

He's saying action movies are in one range of numbers (say 1000-1020), romances are in another range of numbers (say 2000-2005). If the person rents one action movie then you (randomly) pick another action movie to recommend on a receipt / checkout screen

Wouldnt that mean that for say 1000-1020, Id have to actually list the movies out? Because lets say they picked 2 action movies, when I go to output the Random number generator, I cant just have it say "I recommend movie 1" or something like that, but rather, I recommend movie Black Hawk Down. And in the code, 1 = Black Hawk Down...etc etc. Is that a random number generator though? I dont see myself listing out 80 movies. :(. Good call though.
 

DT4K

Diamond Member
Jan 21, 2002
6,944
3
81
How about each time a customer rents a movie, they have a 1 in 10 chance of winning a free rental.
So for each transaction, generate a random number between 1 and 10 and if it's a 5 pop up a message saying "You are a winner of a free rental"