Write an equation that will create a random number between 1 and 100, including 1 and 100.

What will be an ideal response?

formula: lowerbound + rand() % (upperbound - lowerbound + 1)

1 + rand() % (100 - 1 + 1)

Computer Science & Information Technology

You might also like to view...

Match the following audio file format descriptions with their file format type:

I. used to create sound files for UNIX computers A. AU Audio file II. compressed sound file that uses MPEG Audio B. MP3 Audio file Layer 3 codec III. not compressed--can result in large files; originally C. MIDI file for Apple computers IV. sound format used to distribute recorded music, D. AIFF Audio file usually over the Internet V. standard format for musical data between instruments E. Windows Media Audio file and synthesizers

Computer Science & Information Technology

If you want to display multiple lines of information in a message box, use the constant .

a. ControlChars.CrLf b. strNEW_LINE c. CARRAGE_RETURN_LINE_FEED d. vbReturn

Computer Science & Information Technology