Random…. More like a scripted Sequence !!!


Results 1 to 11 of 11

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: Random…. More like a scripted Sequence !!!

    from the manual
    RANDOM is not a true random-number generator. It performs a complex math
    operation on the seed value, resulting in a "seemingly random" result. The same
    seed value will always yield exactly the same result. If the result is used for the
    seed value in subsequent iterations of RANDOM, the result is a predictable
    repeating sequence of numbers.
    what some do is seed the random with a adcin reading on a unconnected analog pin

    eg

    adcin ch,myword
    random myword

    worth trying ?

    ps unconnected = floating
    Last edited by richard; - 24th October 2014 at 23:07.

Similar Threads

  1. Replies: 13
    Last Post: - 5th September 2010, 01:55
  2. How to set sequence of interrupt for PIC
    By chai98a in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st June 2008, 11:17
  3. FOR sequence is skipped
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th August 2006, 02:35
  4. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56
  5. Switch Sequence
    By Tissy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 13th February 2005, 20:36

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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