Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Random in LITE-C ?? [Re: Quad] #291875
09/28/09 17:40
09/28/09 17:40
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
you´ll never have a real random generator! The number is computed in anyway!

Even if you just say a number, you thought why you take this number - so there will never be a real random number.

That´s my opinion wink

Re: Random in LITE-C ?? [Re: Rei_Ayanami] #291880
09/28/09 18:06
09/28/09 18:06
Joined: Nov 2008
Posts: 26
France
H
Hirogens Offline
Newbie
Hirogens  Offline
Newbie
H

Joined: Nov 2008
Posts: 26
France
ok you are reason

a real numeric random generator don't existe.

but you can make a "better" random.

The formula is very long...

Regards
Hirogens


A7 Commercial License.
http://www.wormhole-the-game.com

AMD64 6000+, GTX 280 2GB, 4 GB Ram, Seven
Re: Random in LITE-C ?? [Re: Hirogens] #292050
09/29/09 21:06
09/29/09 21:06
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
im interested in a real random , not for game, but , i know there are some USB you plug in, and generate random numbers, from atmosferic interference but..

Without it, its possible to get a randomized list of number, i think that random anyway..


if you multiple do, randomize(0) and then random(1)*random(1) and integer(result) its random.. for sure.

Re: Random in LITE-C ?? [Re: MMike] #292064
09/29/09 23:26
09/29/09 23:26
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
no... using multiple randoms will always give the same result

e.g using random(2) * random(2) will always return the same number if no random seed has been set

setting a random seed is offsetting where a random number will be chosen from, usually by time and/or date as the time it's calculated each time will be different

there are many things you can apply to being random such as atmosherics, but different users acting at the same time in the same environment will get the same result

people have long looked for ways to actually 'generate a random number' but as Rei has already said (although stupidly), these are all pre-defined/pre-programmed.

unfortunately, even with the smartest AI, the simplest operations can't be performed such as randomness, unless this already has 'taught' to the program

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1