Random Numbers


Closed Thread
Results 1 to 13 of 13

Thread: Random Numbers

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    This is untested, but was thinking of trying it someday....

    The theory.
    Leave an analog pin floating and take a voltage measurement to use as the seed for the random number.

    Not sure how mach variation there will be in each of the measurements. The other thing would be to reduce the sample time for the conversion which may give to less accuracy and give better random results.
    Also, if the pin is connected to a wire or long track, it should act as an antenna and increase the variation in the measurements.

    Maybe some of the experts around here will have any ideas if this could work

    Paul
    +-------------------------------------------------------------------+
    | PBP 2.47/2.50 | MCS+ 3.0.0.5 | U2 Prog | Vista x64 | NO SLEEP!!!!!!! |
    +-------------------------------------------------------------------+

  2. #2
    Join Date
    Oct 2007
    Location
    The Netherlands
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    I once did a project that used a DS18B20 temperature sensor. I used this sensor to also make the seed number for the random generator, worked quite well.

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. Limite random numbers from 1 to 9
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th March 2007, 12:34
  4. 6 random numbers limiting to 49 ?????
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th June 2005, 23:27
  5. random numbers 1-4
    By tekdavid in forum mel PIC BASIC
    Replies: 3
    Last Post: - 30th March 2005, 11:05

Members who have read this thread : 3

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