The Daily Click ::. Forums ::. Non-Klik Coding Help ::. Random Numbers?
 

Post Reply  Post Oekaki 
 

Posted By Message

hop



Registered
  16/03/2005
Points
  916
5th August, 2005 at 23:34:38 -

Not really because there are limitations on human thought. It's because everything we do and think comes from an outside stimulus. Then you create other stimuli for yourself and other organisms to reply to. Every decision we make is basically pre-determined by our life experiences. We really have no choice in what we do in life. Nothing is truly random, everything is linier and there is only one possible future.

Unless there truly are minute particle we haven't discoved or don't understand whose movements are truly random.

I'm thinking too much.

 
Working On:
Psydude
Castle Wars(working title)

XBLGT: sunstrike9

Deleted User
6th August, 2005 at 00:10:03 -

Well thats whats fun thinking hard, well somtimes if its voentary. But I dont think there is only one future mabey there are many possibilitys but you will only thinkof doing like four different things in a situation then an infinuete ammount based on what you have seen and heard in you life so in my thoughts there is only a few billion different futures not 1 and not infinute but that probably didnt make any sence because when i try to explain my thought on somthing as complicated as the futer i usually dont make sence.

 

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
9th August, 2005 at 06:25:09 -

That random comment wasn't actually random, you know.

 
Old member (~2004-2007).

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
9th August, 2005 at 08:36:58 -

Perhaps one should give a definition of random, in order to make it useful for discussing.

Because things you know afterwards aren't so random anymore. But before, you couldn't predict what was going to happen.

O and for an easy implementation of random, just make a counter and make it loop (counter++) between your min and max value. And if you need a random number, just grab it.
Or use the Mersenne Twister.
Or create your own pseudo random generator.


 
Image jenswa.neocities.org

Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
19th August, 2005 at 20:02:35 -

'Hoy... I didn't think this would merit it's own thread; curious as it is, it serves little purpose.
So I'm posting it here.

I made a little program in MMF that would take an overlay object, paint it black, then, on the press of a button, fast-loop-draw 64 pixels at (random(640),random(480) with color (random(256),random(256),random(256).
And after a while, this pattern developed:

Image

Curious, no?

 
Go Moon!

RapidFlash

Savior of the Universe

Registered
  14/05/2002
Points
  2712
20th August, 2005 at 01:09:15 -

Fifth: something like that can be seen in the Mersenne Twister example. The Mersenne Twister object has a better randomizer.

<i."Unless there truly are minute particle we haven't discoved or don't understand whose movements are truly random."
Electrons move randomly in an atom.

 
http://www.klik-me.com

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
20th August, 2005 at 17:55:53 -

The same thing happens in the Fastloop example (the starfield) as well.

 
http://www.davidn.co.nr - Games, music, living in America

Deleted User
20th August, 2005 at 20:40:13 -

couldnt you just do and static movement choose all 32 directions as possible to look to at the start of the frame then the direction would be completely random right?

 

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
22nd August, 2005 at 08:10:56 -

Who said life was linear, was that just discovered and noone told me? As last I heard noone knows how to predict the movement of quantum forces, infact its very very chaotic. If fate exists, prove it.

Computers calculate 'random' numbers through various inputs. You're correct, computers aren't and most likely will never be random. Time, mouse, and various other inputs are used in calculation of 'random' numbers in a computer. If you aware of the input you can determine what number will be called, and it will no longer be random.

@Joachim: your
'10-random(10)'
example is the exact same as
'random(10)'

 
thinking is like pong, it's easy, but you miss sometimes.

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd August, 2005 at 08:17:49 -

Except that the range is 0 to 10 instead of -10 to 0.

 
Old member (~2004-2007).

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
22nd August, 2005 at 15:14:48 -

ummm, no....It would be 0-10 instead of 10-0...Don't talk, it hurts you.

 
thinking is like pong, it's easy, but you miss sometimes.

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
27th August, 2005 at 15:08:02 -

wont this topic die already?



 
n/a

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
27th August, 2005 at 19:41:03 -

It's the thread that keeps on giving.

Image Edited by the Author.

 
thinking is like pong, it's easy, but you miss sometimes.

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
1st September, 2005 at 06:48:33 -

Most programs create more random randomness by comparing the internal clock and the processor. Some of them have used user inputs like the distance the mouse has moved or keyboard stuff, but the pros don't like it as some people aren't very random when typing and using a non-essential piece of hardware means that you can't generate random numbers if say, the keyboard or mouse isn't working.

It's impossible to get truly random numbers. One book on cryptography I read has a section on unbiasing biased coins (in the digital sense). There's plenty of people and thousands of dollars invested in creating pure randomness. Some very high-security programs actually combine several sources of randomness, just to make sure that if a cryptohacker manages to plant a keygen in one of the sources, there's still the others to make it random.

Technically nothing is random in real life. Every random thing is about which subatomic particles bounce into which. But the thing is, we're unable to predict how such subatomic particles would act and that's what creates randomness. Now if someone could find a way to control subatomic particle movement, I could probably create some keygen to get passwords for high-security organisations .

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image
   

Post Reply



 



Advertisement

Worth A Click