Post Reply 
HP-17BII+ serial
02-02-2016, 01:07 AM
Post: #6
RE: HP-17BII+ serial
(02-01-2016 12:19 PM)tomisan Wrote:  A random number generator is still a challenge. I use this equation for now:

RAN#=L(SEED:FP(9821xG(SEED)+.211327))

On first run (with SEED=0), RAN#=0.211327 as expected, but then the formula is evaluated twice for each run, so in effect I get every second term in the sequence. I can live with that, but wish I could make the Solver behave the way I want.
H
By the way, HP-27S on the other hand, will not solve the above formula if SEED=0. I don't know how the original HP-17BII behaves.

This equation works fine on my 27S 2821A:

RAN=FP(9821xG(RAN)+.211327)

I've removed the # as RAN# is a 27S native function from the Prob menu.

Starting with 0 STO RAN then you get:
first run, .211327
second, .653794
third, .122201
fourth, .347348
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-17BII+ serial - tomisan - 02-01-2016, 12:19 PM
RE: HP-17BII+ serial - Don Shepherd - 02-01-2016, 01:26 PM
RE: HP-17BII+ serial - tomisan - 02-01-2016, 03:24 PM
RE: HP-17BII+ serial - Don Shepherd - 02-01-2016, 04:45 PM
RE: HP-17BII+ serial - rprosperi - 02-01-2016, 11:21 PM
RE: HP-17BII+ serial - Didier Lachieze - 02-02-2016 01:07 AM
RE: HP-17BII+ serial - Don Shepherd - 02-02-2016, 02:42 AM
RE: HP-17BII+ serial - tomisan - 02-02-2016, 03:36 AM
RE: HP-17BII+ serial - Don Shepherd - 02-02-2016, 04:38 AM
RE: HP-17BII+ serial - tomisan - 02-02-2016, 05:56 AM
RE: HP-17BII+ serial - Don Shepherd - 02-02-2016, 02:40 PM
RE: HP-17BII+ serial - tomisan - 02-02-2016, 06:22 PM
RE: HP-17BII+ serial - Don Shepherd - 02-02-2016, 07:15 PM
RE: HP-17BII+ serial - Elwin - 02-02-2016, 09:25 AM
RE: HP-17BII+ serial - Elwin - 02-03-2016, 01:51 AM
RE: HP-17BII+ serial - Don Shepherd - 02-03-2016, 02:21 AM
RE: HP-17BII+ serial - rprosperi - 02-02-2016, 09:03 PM
RE: HP-17BII+ serial - tomisan - 02-15-2016, 08:09 AM
RE: HP-17BII+ serial - Don Shepherd - 02-15-2016, 10:14 PM



User(s) browsing this thread: 1 Guest(s)