6 random numbers limiting to 49 ?????


Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It's called a "Pseudo-Random" number generator.

    It's main use is probably for creating "White Noise" with the SOUND command. Well, truthfully, it creates "Pink Noise", since "White Noise" would require a truly Random number generator.

    I wouldn't want to write a game based on these numbers, because it would become too predictable.

    One possibility for generating better randomness, is to take the amplified noise output from a semiconductor such as diode or transistor (White Noise) and feed that into a timer or A/D Channel. When you use those values, you'll never see a repeating pattern. But then, that means more hardware.

    I see Dwayne beat me to the punch. And, I'll agree. Time would make a good seed, as long as it's a battery backed-up clock that still runs when power is off.

    HTH,
       Darrel
    Last edited by Darrel Taylor; - 15th June 2005 at 20:04.

Similar Threads

  1. Questions on random numbers and multiplexing LEDs
    By AaronM in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th June 2009, 04:22
  2. Replies: 4
    Last Post: - 15th April 2009, 01:54
  3. Random Numbers
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 18th December 2008, 08:47
  4. Real Time Clock & Eeprom
    By smart_storm in forum General
    Replies: 8
    Last Post: - 17th February 2006, 19:03
  5. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts