Shop OBEX P1 Docs P2 Docs Learn Events
pseudo-random number generator — Parallax Forums

pseudo-random number generator

dbjdbj Posts: 75
edited 2006-12-05 23:26 in General Discussion
Does anyone know of any code that could be converted to run on a SX chip that would implement pseudo-random number generation. Thanks ·

Comments

  • YendorYendor Posts: 288
    edited 2006-12-05 04:39
    Try SX/B in the help file - there's a RANDOM function in there.

    Compile and look at the listing, if you're looking for assembly code.

    Rodney
  • PJMontyPJMonty Posts: 983
    edited 2006-12-05 04:41
    dbj,

    Go here:

    www.sxlist.com/techref/ubicom/lib/math/rand_sx.htm

    When looking for code, always try SXlist.com first and see what you find. It's usually there.
      Thanks, PeterM
  • James NewtonJames Newton Posts: 329
    edited 2006-12-05 23:26
    PJMonty said...

    When looking for code, always try SXlist.com first and see what you find. It's usually there.
    And if it isn't, then when you get done writing it, please consider adding your code to sxlist.com. The site is, after all, an open wiki / blog thing. Actually, it's been a LONG time since anyone posted anything other than wikispam to the site... actually, it looks like it was Sep 17 when an inproved version of Nik's div 16 bits by 16 bits was posted:

    http://www.sxlist.com/techref/scenix/lib/math/div/16by16ng.htm#38977.9129398148

    So really, I know there has been a lot of good code written since then, take a second to find an appropriate section and post it!



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



Sign In or Register to comment.