Random Phrase

This is a discussion on Random Phrase within the C++ Programming forums, part of the General Programming Boards category; So can I just use the original code but replace rand with the Formula?...

  1. #16
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    So can I just use the original code but replace rand with the Formula?

  2. #17
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    Sure, assuming you define values for the minimum and maximum.
    Sent from my iPadŽ

  3. #18
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    Great...thanks so much...that could come in very handy in the future.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. random to int?
    By psyadam in forum C# Programming
    Replies: 7
    Last Post: 07-22-2008, 08:09 PM
  2. Lesson #3 - Math
    By oval in forum C# Programming
    Replies: 2
    Last Post: 04-27-2006, 08:16 AM
  3. Another brain block... Random Numbers
    By DanFraser in forum C# Programming
    Replies: 2
    Last Post: 01-23-2005, 04:51 PM
  4. How do I restart a random number sequence.
    By jeffski in forum C Programming
    Replies: 6
    Last Post: 05-29-2003, 02:40 PM
  5. Best way to generate a random double?
    By The V. in forum C Programming
    Replies: 3
    Last Post: 10-16-2001, 04:11 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21