// created by: Justin C. Miller
// created on: 9-27-2001
// created for: http://www.geocities.com/neonprimetime.geo/index.html

#include 
#include 
#include 
using namespace std ;

int main(){

        srand(time(0)) ;  // randomizer
                          // if this is not here, your rand()
                          // will not produce random numbers
                          // but instead a repeatable pattern
                          // time(0) is just the seed
                          // and since every second gives a different
                          // time, you're going to get random
                          // numbers to work with
                          // if it doesn't make sense, it doesn't
                          // have to, just know that you MUST
                          // put srand(time(0)) in your program
                          // once in order to get random numbers
                          // when using rand()

        // i want a number from 1 to 10
        int maximum_desired_number = 10 ;
        int my_random_number = rand() % maximum_desired_number + 1 ;
        // NOTICE THE +1
        // if you do not put the +1 then your random number will begin at zero
        // thus if you'll get numbers in the range of 0 to 9, not 1 to 10!!!!!
        return 0 ;
}

    Source: geocities.com/neonprimetime.geo/cpp/cpp_SourceCode

               ( geocities.com/neonprimetime.geo/cpp)                   ( geocities.com/neonprimetime.geo)