Consulting

Results 1 to 4 of 4

Thread: Rand() in excel 2000

  1. #1
    VBAX Regular
    Joined
    Apr 2009
    Posts
    16
    Location

    Rand() in excel 2000

    Hi there,

    Currently my excel rand function when called in VBA repeatedly produces a random value of circa 1.788*10-7.

    When this is fed into NormInv(1.788*10-7,0,1).

    I get -5,000,000.

    Surely this figure is too small to occur relatively fequently?

    Its occus every approx 4000 times rand is called?

    I heard that the rand() in earlier version of excel could be ropey is this an example? If so how do I fix or what alternatives do I have?

    Thanks

    Baz

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,089
    Location
    "ropey".... What is this supposed to mean?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Regular
    Joined
    Apr 2009
    Posts
    16
    Location
    http://support.microsoft.com/kb/828795

    earlier version of rand() were found to fail statistical tests of randomness it was updated in excel 2003 and 2007

  4. #4
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings,

    Well beyond my understanding; I have never used norminv and wouldn't have a clue... I did happen to trip upon this, see if post 83 means anything to you. http://www.forexfactory.com/showthre...=227918&page=6

    As to another random number generator, again, beyond me, but this looked interesting: http://www.ntrand.com/

    Hope of some help,

    Mark

Posting Permissions

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