The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Powerball generator
09-14-2024, 01:26 PM (This post was last modified: 09-14-2024 01:27 PM by Joe Horn.)
Post: #1
Powerball generator
A recent thread in the "Not quite" forum discusses generating Powerball numbers on various programmable calculators. The task is almost too easy on the HP Prime in CAS view:

{SORT(rand(5,1,69)),RANDINT(26)}

That's all it takes to generate a Powerball ticket. The undocumented rand(x,y,z) function automatically performs selection without replacement. Example: Sequential outputs after RANDSEED(pi):

{[ 16 18 31 64 67 ], 14 }
{[ 4 26 28 42 68 ], 23 }
{[ 31 40 44 53 67 ], 3 }
and so on.

Disclaimer: Using this method for ticket generation does not improve your chance of winning the lottery. However, buying one ticket instead of no ticket improves your chance of winning by infinity percent.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Powerball generator - Joe Horn - 09-14-2024 01:26 PM
RE: Powerball generator - lrdheat - 09-14-2024, 02:47 PM



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