Random Number Generator | Follow the Rules!

AI Thread Summary
The discussion centers around the concept of choosing a random number and the inherent biases that come with it. Participants express skepticism about the ability to truly select a random number, noting that psychological factors influence choices, leading to non-random distributions. Commonly favored numbers, such as 3 and 7, are highlighted as examples of this bias. Various methods for generating random numbers are shared, including using the current time or random number generators, but many participants question their effectiveness, suggesting that even these methods can be biased. The conversation also touches on statistical analysis, with references to chi-square tests and the expectation of uniform distributions in truly random scenarios. Ultimately, the thread reflects on the complexities of randomness and the challenges of achieving it in practice, emphasizing that human tendencies often skew results away from true randomness.

Choose a random number.


  • Total voters
    93
signerror
Messages
175
Reaction score
3
Make sure it is really random. No cheating!
 
Physics news on Phys.org
Can you really "choose" a random number?
 
You can't cheat, but you also can't "choose"; lose, lose situation
 
I don't like this game. There aren't enough choices. I wanted to pick 1729.03.
 
Before I vote, I would like to clear up one thing. Is 18 a random number?
 
jimmysnyder said:
Before I vote, I would like to clear up one thing. Is 18 a random number?

18 is as random as 7
 
I am going to bet that you will find a non-random distribution. There will be a statistically significant lack of hits at the ends as well as at the middle, resulting in a double-humped graph.

When asked to choose a number between 1 and 10, a more-than-average number of people will choose 3 or 7 because, psychologically, those numbers are more "hidden".
 
DaveC426913 said:
I am going to bet that you will find a non-random distribution. There will be a statistically significant lack of hits at the ends as well as at the middle, resulting in a double-humped graph.

When asked to choose a number between 1 and 10, a more-than-average number of people will choose 3 or 7 because, psychologically, those numbers are more "hidden".
I remember hearing that you can tell the difference between a sequence of 1's and 0's generated by a pseudo-random generator, and one generated by a person. Apparently, when people generate a sequence, they avoid long runs.
 
Four is a random number: it was chosen by a fair die roll.
http://xkcd.com/221/

Myself, I used the seconds digits of the current time, mod 20.
 
  • #10
DaveC426913 said:
I am going to bet that you will find a non-random distribution. There will be a statistically significant lack of hits at the ends as well as at the middle, resulting in a double-humped graph.

When asked to choose a number between 1 and 10, a more-than-average number of people will choose 3 or 7 because, psychologically, those numbers are more "hidden".

I would have guessed the same thing -- but it seems that we have just the opposite in the distribution so far.

Of course, not so much as to make it fail a chi-square: 14.67 vs. the 19.68 needed to reject at 0.05 level with 11 degrees of freedom.
 
Last edited:
  • #11
I closed my eyes moved the cursor around in the vicinity of the numbers and then clicked. It took a couple tries.
 
  • #12
Moonbear said:
Can you really "choose" a random number?

I closed my eyes and moved my cursor to one of the numbers (it was 7). Initially, I wanted to choose 4.I thought people wouldn't pick numbers near boundary because they appear less random but I guess I am wrong. (I went towards to middle to make it look like random)
 
  • #13
TheStatutoryApe said:
I closed my eyes moved the cursor around in the vicinity of the numbers and then clicked. It took a couple tries.

I also did the same thing :)
 
  • #14
DaveC426913 said:
I am going to bet that you will find a non-random distribution. There will be a statistically significant lack of hits at the ends as well as at the middle, resulting in a double-humped graph.

When asked to choose a number between 1 and 10, a more-than-average number of people will choose 3 or 7 because, psychologically, those numbers are more "hidden".

I would predict that if you put this poll up on any other forum aside from PF, that is precisely what you would see. I think that the folks here at PF are too aware of these patterns and will actually try to break them. I'm curious to see what pattern might instead emerge...maybe the mirror image of what you were predicting.
 
  • #15
Moonbear said:
I would predict that if you put this poll up on any other forum aside from PF, that is precisely what you would see. I think that the folks here at PF are too aware of these patterns and will actually try to break them.
Guilty. :biggrin: I chose 1.
 
  • #16
I used the random number scale on my Schmendrolog slide rule. This is a great military slide rule, as it's resistant to EMP.

The Amazing Schmendrolog...

This Polish slide rule (manufactured circa 1973) featured such groundbreaking slide rule innovations as the 'RND' scale (random number generator) and the famous blank area on the back for writing intermediate values and phone numbers.

In fact, this rule was the first to feature reverse polish notation, an important step in modern computing technology.

195-scales2.jpg


194-schmend.jpg
 
  • #17
TheStatutoryApe said:
I closed my eyes moved the cursor around in the vicinity of the numbers and then clicked. It took a couple tries.
I did the same thing and ended up clicking on the advertisements. :shy:
 
  • #18
I'm the first to pick 10. I'm awesome!
 
  • #19
I chose a time of day in seconds, divided by 20, and voted the remainder.

Seems a random choice enough for me.
 
  • #20
I want to choose 7 could I:biggrin:, now randomly picking I get 6 [apparently the first to pick it]


can I ask, what's the point of this thread?
 
  • #21
drizzle said:
can I ask, what's the point of this thread?

Well I don't know what the OP's intent was, but for me, it's just pure, pointless, geeky entertainment :smile:.
 
  • #22
No point IMHO.

No idea what should I vote for. I like 7 as well, but - as I like it - it is not random.
 
  • #23
Borek said:
No point IMHO.

No idea what should I vote for. I like 7 as well, but - as I like it - it is not random.



just took the words out of my mouth...







hey I've just say so even before you do:-p.
 
  • #24
lisab said:
Well I don't know what the OP's intent was, but for me, it's just pure, pointless, geeky entertainment :smile:.


really...




I don't know why the hell I feel stupid now!
:smile:
 
  • #25
Moonbear said:
I would predict that if you put this poll up on any other forum aside from PF, that is precisely what you would see. I think that the folks here at PF are too aware of these patterns and will actually try to break them. I'm curious to see what pattern might instead emerge...maybe the mirror image of what you were predicting.

Haha exactly! I made sure to not choose 3 or 7.
 
  • #26
The computer time is (was) 5:40 = 1740 hours. Added digits until they fall into the 1-20 range: 1+7+4 = 12. I'm amazed to see a (more or less) uniform distribution.
 
  • #27
I was expecting 7 and 13 to pop out. Lucky and unlucky.
 
  • #28
Also, were just over n=30, so now we're stastically significant.
 
  • #29
Let's compare to a pseudorandom number generator...
Code:
 1 : 4   0
 2 : 1   1
 3 : 0   2
 4 : 3   1
 5 : 2   3
 6 : 3   3
 7 : 7   5
 8 : 1   3
 9 : 1   5
10 : 2   0
11 : 1   2
12 : 1   2
13 : 2   2
14 : 1   4
15 : 1   2
16 : 2   1
17 : 3   1
18 : 4   2
19 : 1   1
20 : 2   2

Here's the code I used...

Code:
#include <iostream>
#include <cstdlib>

   using namespace std;

    int main()
   {
      const int N = 42;
   
      int freq[20] = {0};
      
      srand(time(0));
   	
      for(int i = 0; i < N; i++)
      {
         freq[ rand() % 20 ] ++;
      }
   
      for(int i = 0; i < 20; i++)
      {
         cout << (i+1) << " : " << freq[i] << endl;
      }
   
      return 0;
   }

Ironically, the human one seems to be more "random" than the pseudorandom one.
This leads me to think that people are cheating.
 
  • #30
According to your program, 7 is lucky!
 
  • #31
I let Mathematica choose for me:

Code:
In[1] := RandomChoice[Range[20]]

Out[1] := 13
 
  • #32
Mathematica is Unlucky!
 
  • #33
AUMathTutor said:
Ironically, the human one seems to be more "random" than the pseudorandom one.
This leads me to think that people are cheating.

Run your program more times then.

Eventually it should yield an instance that agrees with 30 physicists typing on keyboards selecting numbers between 1 and 20.

When you document congruence, you will have your proof that it must be random.
 
  • #34
flatmaster said:
Mathematica is Unlucky!

Haha, anyone can generate a random choice from this list using Wolfram|Alpha, just type in:

Code:
RandomInteger[20]

or

Code:
Floor[20 Random[]]+1
 
  • #35
A rare thing happened at work today. Every month we have birthday cake to celebrate everyone born in that particular month. Today we had cake, but it turned out that none of the 66 employees in our building had a June birthday (the odds against that happening are about 311-1).

Coincidently, the music to "Happy Birthday to You" was written by Mildred J. Hill, who was born in June and died in June. (With no birthdays to celebrate, we had to do something while we ate our cake, so we had birthday trivia.)
 
  • #36
BobG said:
(With no birthdays to celebrate, we had to do something while we ate our cake, so we had birthday trivia.)

Apparently so.

Happy Birthday Mildred then.
 
  • #37
BobG said:
A rare thing happened at work today. Every month we have birthday cake to celebrate everyone born in that particular month. Today we had cake, but it turned out that none of the 66 employees in our building had a June birthday (the odds against that happening are about 311-1).

About 288:1 based on the number of days in that month and that month's frequency:
http://www.maa.org/mathland/mathtrek_11_23_98.html
 
Last edited by a moderator:
  • #38
I just wiggled my mouse around wildly with my eyes closed and picked the radio button closest in vertical position to where it stopped at. 6!
 
  • #39
since the talk is about [bizarre] numbers, did you ever felt like you’ve been chased by a number! sounds funny I know, but I mean [personally], where ever I look, I see the number 42, the time is always [something:42], my academic number was 42, every film I watch points out that number [like, street 42, apartment 42…], what makes this more creepy to me
now, is the number I picked randomly here is 6, unlike the number I would like to pick which is 7…



but hey 6*7=42
 
  • #40
Start another thread, exactly the same but ask people to "choose a non-random" number then subtract that distribution from this one and you have a random distribution. easy
 
  • #41
6, 16,
 
  • #42
QuantumPion said:
I just wiggled my mouse around wildly with my eyes closed and picked the radio button closest in vertical position to where it stopped at. 6!

Not random at all. Most likely you ended around the starting position, where your hand was at rest.
 
  • #43
CRGreathouse said:
About 288:1 based on the number of days in that month and that month's frequency:
http://www.maa.org/mathland/mathtrek_11_23_98.html

Interesting, I believe I have seen similar list of birth frequencies for Poland back in eighties, and there was a surge around April/May, that is, 9 monts after summer vacations. Could be these were data before contraception became reasonably available here.
 
Last edited by a moderator:
  • #44
Borek said:
Not random at all. Most likely you ended around the starting position, where your hand was at rest.
It is more random than the rest of us.
 
  • #45
DaveC426913 said:
It is more random than the rest of us.

I'm not sure of that. When the sequence of numbers remains in the same order, and you have some sense of how much you're moving the mouse up and down, you're pretty likely to land quite close to where you intended to land.
 
  • #46
drizzle said:
since the talk is about [bizarre] numbers, did you ever felt like you’ve been chased by a number! sounds funny I know, but I mean [personally], where ever I look, I see the number 42, the time is always [something:42], my academic number was 42, every film I watch points out that number [like, street 42, apartment 42…], what makes this more creepy to me
now, is the number I picked randomly here is 6, unlike the number I would like to pick which is 7…



but hey 6*7=42

If you drill a hole from the North Pole, through the center of the Earth to the South Pole, and then drop a ball into the hole, how many minutes will it take for the ball to reach the surface at the South Pole (disregarding any friction from the air, etc)?

Why was the Mad Hatter mad?

(Just trying to fuel your obsession).
 
  • #47
BobG said:
If you drill a hole from the North Pole, through the center of the Earth to the South Pole, and then drop a ball into the hole, how many minutes will it take for the ball to reach the surface at the South Pole (disregarding any friction from the air, etc)?

Why was the Mad Hatter mad?

(Just trying to fuel your obsession).


:cry::cry::cry:
 
  • #48
Moonbear said:
I'm not sure of that. When the sequence of numbers remains in the same order, and you have some sense of how much you're moving the mouse up and down, you're pretty likely to land quite close to where you intended to land.
Yeah, I'm not saying it's a good method - but just picking a number can't be a good method either. I picked 1. How could that be random?
 
  • #49
Still working on my number, so far I'm up to the 247th digit.
 
  • #50
How can you really pick a random number? It seems like most of the methods we've been using are biased.

My random number generator was biased. Wiggling the mouse around is biased. Taking the time and doing a modulus is biased.
 
Back
Top