Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: interesting Pac fact  (Read 1928 times)

0 Members and 1 Guest are viewing this topic.

DYNAGOD

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1163
  • Last login:May 21, 2012, 07:01:55 am
  • sprites taste better than polygons
interesting Pac fact
« on: December 03, 2005, 09:39:34 am »
1. The idea of the game came from
Enjoying the fruits of technological obsolescence one game at a time...

quarterback

  • King Of The Night Time World!
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3089
  • Last login:February 26, 2025, 12:22:43 pm
Re: interesting Pac fact
« Reply #1 on: December 03, 2005, 10:54:10 am »
4. The algorithm for only the orange ghost is
No crap, don't put your kids in a real fridge.
-- Chad Tower

Grasshopper

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2380
  • Last login:March 04, 2025, 07:13:36 pm
  • life, don't talk to me about life
Re: interesting Pac fact
« Reply #2 on: December 03, 2005, 11:00:51 am »
I suppose it depends upon what is meant by "random" in this context.

A lot of programming languages have random number functions built in that are not truly random but are actually based on hard to predict series of numbers.
"Patriotism is the last refuge of the scoundrel." - Samuel Johnson

brophog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 486
  • Last login:January 20, 2019, 03:49:41 am
  • I want to build my own arcade controls!
Re: interesting Pac fact
« Reply #3 on: December 05, 2005, 03:35:12 am »
That's basically all random numbers. It's basically impossible to truly produce a random number, although some of today's programs get rather close.


Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #4 on: December 05, 2005, 05:19:14 am »
That's basically all random numbers. It's basically impossible to truly produce a random number, although some of today's programs get rather close.
My old TI99/4A had a randomize statement. When this was put into the program it produced what appeared to be completely random results. Every time the program was run the numbers came out different.

Probably not truly random but as close to random as ---fudgesicle--- is to swearing.

Living the delusional lifestyle.

Ed_McCarron

  • Nothing worse than Picard issuing the self destruct order and the next thing you know it your apartment blows up.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2404
  • Last login:June 20, 2022, 02:33:39 pm
  • Get your mind out of the gutter. THIS is a dongle.
Re: interesting Pac fact
« Reply #5 on: December 05, 2005, 08:44:29 am »
Randomize simply restarted the 'random' number generator from a known point, the 'seed'.  After that, it followed the same mathematical formula to create the numbers.

To get closer to random, programs used to:

A) Make a user press a key, and randomize based on the time it took.  Human reaction time was pretty random.

B) At the programs start, reseed the generator with the number of ticks the computer has been running.

Theres more, I'm sure.

God I'm a geek.  I got all nostalgic for my VIC-20 while thinking on this. :)
But wasn't it fun to think you won the lottery, just for a second there???

Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #6 on: December 05, 2005, 02:15:10 pm »
The Randomize command could used without a seed, and the number appeared random. In other word the seed it then chose was random!

Living the delusional lifestyle.

Ed_McCarron

  • Nothing worse than Picard issuing the self destruct order and the next thing you know it your apartment blows up.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2404
  • Last login:June 20, 2022, 02:33:39 pm
  • Get your mind out of the gutter. THIS is a dongle.
Re: interesting Pac fact
« Reply #7 on: December 05, 2005, 03:33:51 pm »
The Randomize command could used without a seed, and the number appeared random. In other word the seed it then chose was random!

I'm gonna go out on a limb and say no.

Even if it reseeded with a 'random' number, the function still held true and the sequence would be repeatable.  If you were to cold boot the computer and do this:

? RND(1)

You might get .34523

Turn off the computer, and do it again.  You'd get the same .34523 .

Now, do the same thing, but insert the randomize command in before the ? RND line.  I bet a dollar you get the same number both times.

Its rare I come down off my fence, you should consider this an honor.   ;D
But wasn't it fun to think you won the lottery, just for a second there???

Stingray

  • Official Slacker - I promise to try a lot less
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10463
  • Last login:April 08, 2021, 03:43:54 pm
Re: interesting Pac fact
« Reply #8 on: December 05, 2005, 03:35:57 pm »
I understood "fence".

-S
Stingray you magnificent bastard!
This place is dead lately.  Stingray scare everyone off?

Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #9 on: December 05, 2005, 03:39:35 pm »
The Randomize command could used without a seed, and the number appeared random. In other word the seed it then chose was random!

I'm gonna go out on a limb and say no.

Even if it reseeded with a 'random' number, the function still held true and the sequence would be repeatable.

Living the delusional lifestyle.

Stingray

  • Official Slacker - I promise to try a lot less
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10463
  • Last login:April 08, 2021, 03:43:54 pm
Re: interesting Pac fact
« Reply #10 on: December 05, 2005, 03:54:29 pm »
Stingray loves mad science.

-S
Stingray you magnificent bastard!
This place is dead lately.  Stingray scare everyone off?

Ed_McCarron

  • Nothing worse than Picard issuing the self destruct order and the next thing you know it your apartment blows up.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2404
  • Last login:June 20, 2022, 02:33:39 pm
  • Get your mind out of the gutter. THIS is a dongle.
Re: interesting Pac fact
« Reply #11 on: December 05, 2005, 03:59:40 pm »
Cool.

If it turns out I'm wrong (Won't be the first time) just tell me where to mail the $1 US.

You can convert it to flanian pobble beads or whatever currency is in vogue over there on your own. :)
But wasn't it fun to think you won the lottery, just for a second there???

CIA_Guy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 81
  • Last login:January 01, 2025, 10:33:10 pm
  • You mean there are games other than Defender?
Re: interesting Pac fact
« Reply #12 on: December 05, 2005, 09:42:17 pm »
Some of the PC BASICs would use a frame count as the random number seed.  The seed was the number of frames displayed on the monitor since midnight -- effectively a random number used as a "starting point" for the random generator.


Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #13 on: December 05, 2005, 10:17:04 pm »
Interesting... Would this also include output to TV screens?

Living the delusional lifestyle.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:February 25, 2025, 08:29:42 pm
  • There's my post
    • RayB.com
Re: interesting Pac fact
« Reply #14 on: December 06, 2005, 12:54:03 am »
I second the claim that the random command on some old computers produced the same sequence of numbers. My experience was primarily with the Commodore 64. I even discovered that if I plotted dots at supposedly random XY coordinates, over time a pattern of diagonal lines would emerge. The fact that any pattern at all would appear proves the numbers were not truly random, but following some sort of sequence.

I even used this discovery as the basis for a game I programmed called Wizard's Vault. The game had you control a wizard and you had to collect gold while walls were building themselves all around (randomly). Screenshot here:
As you can see from the partially built walls in that screenshot, even though I was only using Random to determine XY placement of each wall portion, they ended up forming diagonal lines!

If I ever wanted more truly random values, I used the system clock as the seed.
NO MORE!!

Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #15 on: December 06, 2005, 04:00:57 am »
Results

REBOOT

>print rnd
.8225408469

>print rnd
.163164479

REBOOT

>print rnd
.8225408469

>print rnd
.163164479

REBOOT

>randomize
>print rnd
.7212480813

>print rnd
.0652526408

REBOOT

>randomize
>print rnd
.7759402018

>print rnd
.580351756

REBOOT

Randomize
>print rnd
.78060689

>print rnd
.9199114218


Certainly looks random!




Living the delusional lifestyle.

Ed_McCarron

  • Nothing worse than Picard issuing the self destruct order and the next thing you know it your apartment blows up.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2404
  • Last login:June 20, 2022, 02:33:39 pm
  • Get your mind out of the gutter. THIS is a dongle.
Re: interesting Pac fact
« Reply #16 on: December 06, 2005, 05:52:05 am »
Great, now I must go commit ritual suicide by impaling myself on a broken Tron joystick.

What type of computer were you using?  I'dve sworn the VIC did not work that way.

I'll stick that dollar in the pouch of the next roo I see.  I figure it'll get to you eventually. :)
But wasn't it fun to think you won the lottery, just for a second there???

Bones

  • [Moderator]
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3995
  • Last login:July 26, 2021, 11:34:03 pm
Re: interesting Pac fact
« Reply #17 on: December 06, 2005, 06:02:27 am »
What type of computer were you using? I'dve sworn the VIC did not work that way.
Texas Instruments TI99/4A.

Logic tells me that a computer can not "think-up" a random number but I will be damed if I understand how it does it. Being a very basic machine there was no onboard clock or anything fancy like that the machine could use to help generate "randomness".

Generating random numbers was probably the slowest command the old machine had. It would literally take 1/3 a second to think up a number and print it. When I was writing games on the TI I would generate all the random numbers before the game started and then just draw them out or arrays because to generate the numbers on the fly slowed the system down ridiculously.

Living the delusional lifestyle.

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:February 25, 2025, 08:29:42 pm
  • There's my post
    • RayB.com
Re: interesting Pac fact
« Reply #18 on: December 06, 2005, 01:24:41 pm »
Every computer has a "clock". Not necessarily a clock that tells you the hour and minutes, but a single register or memory location that continuously increments.

NO MORE!!