DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ramdomising numbers.

  1. #1
    philip Guest

    ramdomising numbers.


    can someone please tell me how to randomise a variable??

  2. #2
    jonnin Guest

    Re: ramdomising numbers.


    Standard, use
    rand() and srand(int) to seed the stream.
    I have code for a portable one at earth.vol.com/~jonnin
    if you to see how to do it in source. its "good enough"...


    "philip" <philip_hong@etang.com> wrote:
    >
    >can someone please tell me how to randomise a variable??



  3. #3
    philip Guest

    Re: ramdomising numbers.


    Thanks very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center