Can the computer actually perform true random selections. How is it possible? | Sololearn: Learn to code for FREE!
+ 9

Can the computer actually perform true random selections. How is it possible?

Random Selection

22nd Nov 2018, 12:33 PM
Toby Chidi
Toby Chidi - avatar
5 Answers
+ 8
As far as I know... There is no thing as true random. Like suppose... Flipping a coin to get head or tails is pretty much random. But if we know the rotational speed, mass of the coin, the direction the air is moving and in which speed... We will know for sure what the result of the coin flip will be. sᴏ ʀᴀɴᴅᴏᴍ ɪs ʙᴀsɪᴄᴀʟʟʏ ɴᴏᴛ ᴋɴᴏᴡɪɴɢ ʀᴇsᴜʟᴛs ᴏғ sᴏᴍᴇᴛʜɪɴɢ ʙᴇᴄᴀᴜsᴇ ᴏғ ʟᴀᴄᴋ ᴏғ ɪɴғᴏʀᴍᴀᴛɪᴏɴ's! Read these : Links : https://www-howtogeek-com.cdn.ampproject.org/v/s/www.howtogeek.com/183051/htg-explains-how-computers-generate-random-numbers/amp/?amp_js_v=a2&amp_gsa=1&usqp=mq331AQECAFYAQ%3D%3D#referrer=https%3A%2F%2Fwww.google.com&amp_tf=From%20%251%24s&ampshare=https%3A%2F%2Fwww.howtogeek.com%2F183051%2Fhtg-explains-how-computers-generate-random-numbers%2F https://engineering.mit.edu/engage/ask-an-engineer/can-a-computer-generate-a-truly-random-number/
22nd Nov 2018, 1:42 PM
Nashid Ayman
Nashid Ayman - avatar
+ 4
Nope. The computer to generate a random number uses a lot of things to account like time, for example mouse position, battery level and a lot of things to make it hard to spoof the rng, but it still is not random.
22nd Nov 2018, 5:21 PM
inxanedev!
inxanedev! - avatar
+ 2
The pseudo-random functions that are provided in language libraries are usually sufficient. They are well tested to provide expected random distribution. However, they are deterministic. But if you want to add real random sequences to your game then look at https://www.random.org/ where numbers are generated by atmospheric disturbances. Another approach I have seen is to connect a personal nuclear radiation detector to your PC and count either clicks per unit time or time between clicks.
23rd Nov 2018, 7:01 AM
Brian
Brian - avatar
+ 2
Computer do NOT produce true random values. They just generate pseudo random values from seeds provided mostly. But there are some instances where computer generate true random values using radio carbon decaying, atmospheric noice or anything from physical environment which always have very random values. Refer this article from Wikipedia . https://en.m.wikipedia.org/wiki/Random_number_generation A good example which generate true random numbers using atmospheric noice: https://www.random.org
23rd Nov 2018, 4:51 PM
Seniru
Seniru - avatar
+ 1
Nothing is truly random. The same goes for computers. There are algorithms in codes that allow you to choose a "random" selection. Just like Nashd ayman pointed out random is not knowing the end result due to lack of information.
22nd Nov 2018, 10:16 PM
Brett
Brett - avatar