Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Ideas and Projects [Archive]
#1

Random Number generator

Archive: 6 posts


So I have been working on a random number generator for a project for my MAT421 class, but am having difficulty on the random part. I have an Octogon with magnetic switches on each of the sides and I have it spinning. When you hit a button, it emits a block with the magnetic key that matches the switches. Depending on which switch is at the bottom at the time it will emit a number 1-8. But I keep getting the same numbers, either 5 or 6. I tried changing the speed of the ocotgon but that did not help much. Any suggestions? If this is confusing, let me know. I will try to explain it better or take pics or something.2009-11-22 00:37:00

Author:
Spider-Jew
Posts: 1090


I'm not sure how 5 or 6 could be at the bottom every time you press the button.

Is it actually a sackperson pressing the button that triggers it, or do you have a periodic trigger?

Also, how fast is the octagon going? The best bet is to have the speed vary (using a speed input switch of some kind) as this will increase the randomness.

Have you seen the randomiser from the LBPC logic pack? You may be able to pilfer some ideas from that
2009-11-22 00:57:00

Author:
rtm223
Posts: 6497


I am not sure either, lol. It is actually a sackperson hitting the button...I tried to wait different lengths of time before hitting the switch, but it didn't really help. You think a periodic trigger would be better? And, I was thinking of making something to change the speed.

And I knew there was a randomizer somewhere...I will have to check that out also. Thanks.
2009-11-22 01:08:00

Author:
Spider-Jew
Posts: 1090


lolz. We still get logic problems even after the logic pack 2009-11-22 02:24:00

Author:
Incinerator22
Posts: 3251


Sorry that I have something new to deal with lol.2009-11-22 04:08:00

Author:
Spider-Jew
Posts: 1090


Sorry for double post...the variable speed works like a charm! Thanks rtm223! This level is going to be great...well, idea wise. It is going to look terrible for now, but after my class is over, I might make it look nice so everyone may enjoy it.2009-11-22 06:11:00

Author:
Spider-Jew
Posts: 1090


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.