Thread: Need help with random float number

  1. #1
    Registered User
    Join Date
    Apr 2019
    Posts
    1

    Need help with random float number

    How to generate a random float number between -1 and 1?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,525
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to reserved int number and print as float number ?
    By alon4963 in forum C Programming
    Replies: 1
    Last Post: 11-24-2013, 06:46 AM
  2. need a random number generator thats not compleatly random
    By thedodgeruk in forum C++ Programming
    Replies: 1
    Last Post: 06-05-2011, 06:48 AM
  3. Replies: 5
    Last Post: 10-05-2009, 10:21 AM
  4. Replies: 2
    Last Post: 12-25-2003, 01:31 AM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM

Tags for this Thread