this has always puzzled me, how was the bit for random selection code bits ever made, everything started with binary which is just 1 and 0 and that doesn't give you anything for random selection, so how the heck do you get some randomly select a number or something?
Offline
Sunrise-Moon wrote:
It's never truly a random number.
^^ Right you are! Also, I think this belongs in All About Scratch, or Advanced Topics... hmmm... whatever, I'll move it to Advanced Topics. >.>
Offline
MyRedNeptune wrote:
Sunrise-Moon wrote:
It's never truly a random number.
^^ Right you are! Also, I think this belongs in All About Scratch, or Advanced Topics... hmmm... whatever, I'll move it to Advanced Topics. >.>
It's not really about Scratch though
.
Offline
If you look at vb.net the random numbers produced on that are the same every time you run it.
Maybe some random numbers are made by the computer sensing whether or not the network is busy.
If network busy
set random to 1
else
wait n seconds
If network busy
set random to 2
else
wait n seconds
If network busy
set random to 3
else
(ect)
My site Offline
Perhaps it's like a spinner that is continuously turning until it is told to stop.
Last edited by Sunrise-Moon (2010-07-19 01:59:06)
Offline
I believe that random numbers in things like microhips and scratch are just a long list of numbers that do eventually loop back to the start. This is called Pseudo random. Other things, such as computers, can calculate random numbers by using changing variables to affect the outcome of the number, e.g. the time, the date, the current processing speed, the number of files in a folder, how many times you have clicked the mouse etc, and while this is still not random as it is calculated, it will not loop. a good one for random number generation would be the digits in pi. if you can get them to their current calculated length, you will find they go on for a VERY long time and no repretiton has yet been found. True random, however, cannot really be achieved by machines, no (I believe) by humans as our descisions and thoughts are directly affected by our mood, the enviroment, our personality and previous experience, making any random choice of ours actually decided and not random at all
Offline
Yeah the numbers aren't truly random, computers use algorithms like this to make random numbers.
Offline
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
Squeak uses the current time in milliseconds to seed its random numbers.
Last edited by nXIII (2010-07-19 18:26:02)
Offline
nXIII wrote:
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
Squeak uses the current time in milliseconds to seed its random numbers.
Well, Scratch's random block isn't exactly the best.....
Offline
ScratchReallyROCKS wrote:
nXIII wrote:
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
Squeak uses the current time in milliseconds to seed its random numbers.Well, Scratch's random block isn't exactly the best.....
I was just telling people that Squeak uses the time to seed random numbers. Those two paragraphs have nothing to do with each other.
Offline
nXIII wrote:
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
Squeak uses the current time in milliseconds to seed its random numbers.
I believe it is atmospheric noise (at least that's what random.org does).
Offline
nXIII wrote:
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
I'm pretty sure that it is something like the frequency that any atom is vibrating at... Or something like that.
Google it.
Offline
Jwosty wrote:
nXIII wrote:
Someone needs to point out that you can use a real-world phenomenon to generate 100% random numbers. I just forget what it is....
I'm pretty sure that it is something like the frequency that any atom is vibrating at... Or something like that.
![]()
Yea, that sounds right. I think it's the random motion of atoms.
Offline