Friday, November 12, 2010

C++ code generator using rand help

0 comments
I have to write a function that generates codes that are 15 characters long and equal a certain value. I haven't really been taught how to use rand and I was wondering if I could get some help. The codes have to be equal to 3 or 10 and this is the equation used to find the value of the code.Hope that makes sense. Anyway, I have to write a random number generator that generates however many codes I tell it to, and all the codes generated have to equal 3 or 10 according to the above equation. I also have to give the generator a seed. I really don't know where to start.
Read More

0 comments:

Post a Comment