Results 1 to 2 of 2

Thread: Random no. generation using QT3??

  1. #1
    Join Date
    Mar 2006
    Posts
    47
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Random no. generation using QT3??

    Hi,

    I am working on a project using QT3 for mac. I want to generate random no., I have to write this random to a buffer bytes. How i can use QT for this.

    How should i have to do this.?

    Thanks and Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Random no. generation using QT3??

    Use srand() and rand().

Similar Threads

  1. Random No Generator in C/C++
    By ankurjain in forum General Programming
    Replies: 1
    Last Post: 6th July 2006, 11:33
  2. Replies: 7
    Last Post: 31st May 2006, 09:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.