Randomising numbers... is it really possible?

A meeting area where members can relax, chill out and talk about anything non magical.


Moderators: nickj, Lady of Mystery, Mandrake, bananafish, support

Randomising numbers... is it really possible?

Postby seige » Mar 20th, '07, 20:16



I had a lengthy discussion today with a work colleage about generating random numbers.

My side of the argument is that it's not strictly possible with a computer, because computers are mathematical by nature, and randomness isn't in the rulebook.

Any thoughts?

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby JackWright » Mar 20th, '07, 20:27

Well, the machanical processes which computers use (don't ask me, I don't know) would seem to suggest that the idea is not possible. My understanding is that RNGs 'produce what are called pseudo-random numbers. These are sequences of numbers that are sufficiently `random' to pass all current statistical tests for randomness in `realistic' cases. '

I heard a story of someone who found out a way to crack this (World's greatest gambling scams' or a similar show) and got sent to jail for it.

I don't really know all that much about computers anyhow, so I might just be guessing when I say that it doesn't sound possible.

JackWright
Senior Member
 
Posts: 392
Joined: May 25th, '06, 16:27
Location: Birmingham, UK (15:AH)

Postby seige » Mar 20th, '07, 20:30

Very interesting:
http://www.random.org/essay.html

Our argument came that online gambling is surely open to predictibility after reading a comment in the news that online gambling companies are raking in profits.

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby Lawrence » Mar 20th, '07, 21:22

randomness is something that's a little bit on the wierd side. like you say, computers are technically incapable of generating anything truely random, but can usually simulate it quite well.
but think on a smaller scale, the outcome of the toss of a coin is, mathematically, completely random.
as for generating random numbers just get a few D10s out and throw them, it's as random as you're going to get!

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Postby Sir_Digby_Chicken_Ceaser » Mar 20th, '07, 21:44

I would say no, computers can't produce random numbers as they have to be programmed to produce any numbers at all. They could be programmed to choose numbers at random but these would still have to be inputted making them completely random. The only case of real random i can think of is the radiation (gamma rays) given off by nuclear material. No scientist has yet worked out how to work out when this is going to happen and the material just does it randomly.

User avatar
Sir_Digby_Chicken_Ceaser
Senior Member
 
Posts: 775
Joined: Nov 16th, '06, 21:27
Location: Durham 17:AH

Postby Lawrence » Mar 20th, '07, 21:49

the only case of randomness you can think of is radiation? mad, i'd argue that's not really random. not as random as, say, the outcome of a coin toss
although newton claimed that nothing was random anyway, that everything is all predetermined and whatnot

So somewhere out there in the vastness of the unknown there’s an… equation for predicting the future?
An equation so complex as to utterly defy possibility of comprehension by even the most brilliant human mind, but an equation nonetheless.

....oh....my....god...........

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Postby Sir_Digby_Chicken_Ceaser » Mar 20th, '07, 21:56

Our nut of a physics teacher has us taught that theres an equation for everything. Time travel, predicting future and all sorts but thats more his beliefs than facts although i do see where hes coming from. I mean, nothing is impossible. Long distance contact in seconds was in victorian times and look at the tiny little mobiles you get now. Its all a matter of time.

I chose neuclear activity as an example since its the most natural form of randomness i know. I mean, depending on the weight shape and size of a coin, heads or tails can't be *exactly* even can it?

User avatar
Sir_Digby_Chicken_Ceaser
Senior Member
 
Posts: 775
Joined: Nov 16th, '06, 21:27
Location: Durham 17:AH

Postby Lawrence » Mar 20th, '07, 22:00

in theory if it was exactly even then it just makes it even more random. i could start going on about cats in boxes with poison about now, but the quantumness of everything would start messing with my head again.
as for natural randomness why not go for something slightly more comprehensable by other people, like the sex of a baby, that again, is random as!

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Postby seige » Mar 20th, '07, 22:01

I wish I understood chaos theory... is it a branch of mathematics?

Well, I've been messing around at my computer, and decided that I can generate a pretty random number... but, could the COMPUTER predict my random number...?

I just ran a simple application based on one seed, which generates a digit as a decimal fraction of 1.0 (I think this is the standard computer random function)

The application was set to run a loop, like this...

*************
$array = ''; (create an 'array' variable, capable of housing each individual random number as an entry in a list)

LOOP STARTS

$random = randomnumber (this gives me my 0.xxxxxxx)

$random = integer($random x 1000) ... (this shifts the decimal place over by 3 places to give a number between 1 and 1000, and the 'integer' bit makes it a whole number, not a decimal fraction, i.e. rounds it up)

AddRandomtoArray($random) ... (this adds our number to the array)

LOOP CONTINUE 1,000,000 (loop continues until 1 million numbers are in the array)

CountSimilarities(in $array)
******************

Seemingly fair. (the above isnt the actual code, it's kind of laymen speak)

The result was surprising. And quite random.

Out of 1 million random numbers chosen, between 1 and 1000, there were a good chunk of duplicates around the numbers 500 to 900. Very few matches in the 1 - 100 mark, and the LEAST common number was 999.

I don't know what this means, but it seems the computer's randomness was biased between 500 and 900.

Every number between 1 and 1000 was chosen at least once.

The most popular number was 723. For some reason.

I may run another loop and repeat the test 1 million times and compare the cumulative result... it sounds like a lot of number crunching, but takes about 3 seconds for 1 million results to be checked!

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby Sir_Digby_Chicken_Ceaser » Mar 20th, '07, 22:06

Thankyou for confusing me seige. The big words and numbers do well for this purpose. The thing is though even if something is random it is its own enemy. Due to the natural way of randomness you're always going to get numbers more than others which is why its so hard to prove if somethings random or biased.

As for chaos theory is that not more Degree physics?

User avatar
Sir_Digby_Chicken_Ceaser
Senior Member
 
Posts: 775
Joined: Nov 16th, '06, 21:27
Location: Durham 17:AH

Postby Lawrence » Mar 20th, '07, 22:09

chaos theory? choff! it's ALL game theory!!
but yes, it's maths (after a fashion)
like we've said, can't see computers generating anything that is truely random, but they could go on forever without anyone working out a sensible pattern.
it all depends on your definition of "random" really.
the best way to generate a truely random number is the roll a few dice (in the theoretical and truely literal meaning!)

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Postby Sir_Digby_Chicken_Ceaser » Mar 20th, '07, 22:13

The one side of a dice would weight minimally more than the 6 side if you think about it though so again not technically random. Numbers can't ever be random i don't think since humans thought them up. Without humans then numbers wouldn't be in existance at all which brings round the question


What is the meaning of life? O/J

User avatar
Sir_Digby_Chicken_Ceaser
Senior Member
 
Posts: 775
Joined: Nov 16th, '06, 21:27
Location: Durham 17:AH

Postby Lawrence » Mar 20th, '07, 22:19

Sir_Digby_Chicken_Ceaser wrote:The one side of a dice would weight minimally more than the 6 side if you think about it though so again not technically random. Numbers can't ever be random i don't think since humans thought them up. Without humans then numbers wouldn't be in existance at all which


you'd get things thrown at you and chants of "noooooob" for saying things like that round these parts.
ok, pretend the dice is even then! THEN it's bloody well random!
as for numbers being invented you couldn't be more wrong, there's a reason that what you see as numbers are called Natural Numbers!
when the aliens come to this planet, they'll use the same maths as we do, it will probably just look a little different, but 2+2=4 everywhere you go, in one form or another....
I'm going to stop befor i start my "i can comunicate with aliens better than a linguist can" rant!
and we should just combine this with the "maths problem" thread

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Postby Sir_Digby_Chicken_Ceaser » Mar 20th, '07, 22:23

Lol, depends on how you throw the dice though. Holding it different ways has different effects, i saw a program once about a guy who made thousands just by how he rolled the die on the craps table.

I wouldn't say number have always existed but formulas will have. We just put numbers into the formlas as our way to understand them.

I must say I'm quite enjoying this debate lol :)

User avatar
Sir_Digby_Chicken_Ceaser
Senior Member
 
Posts: 775
Joined: Nov 16th, '06, 21:27
Location: Durham 17:AH

Postby Lawrence » Mar 20th, '07, 22:25

stop throwing practical things into this!! I'm all theoretical (and right i'll have you know). if you're holding a dice in your hand and you dont know which face is up, then it honestly doesnt matter how you throw it.
i know the dice man you're talking about, i'd link you to his website but he's a bit on the gansta side and likes guns a little too much.

Custom R&S decks made to specification - PM me for details
User avatar
Lawrence
Veteran Member
 
Posts: 5069
Joined: Jul 3rd, '06, 23:40
Location: Wakefield 28:SH

Next

Return to The Dove's Head

Who is online

Users browsing this forum: No registered users and 0 guests

cron