11/19/2015 6:09 PM | |
Joined: 4/28/2015 Last visit: 2/7/2024 Posts: 10533 Rating:
|
Hmmmm interesting |
With best regards... |
|
11/20/2015 5:10 PM | |
Joined: 1/17/2007 Last visit: 8/21/2024 Posts: 1545 Rating:
|
Actually, one of the hardest thing to do in a computer is to generate TRUELY random numbers. As has already been mentioned, computers do not produce random results, which is good otherwise chaos would ensue. The issue of generating random numbers with electrical hardware was a real life issue for the UK premium bonds system. They eventually made a machine called ERNIE (Electronic Random Number Indicator Equipment) https://en.wikipedia.org/wiki/Premium_Bond#ERNIE Random numbers can be useful in a controller for testing purposes. For example, you could generate a random 16-bit number and use the individual bits as inputs to a logic array that you want to test. So you could test that valid / invalid logic input combinations in random orders are handled correctly. They are also useful for simulation of physical values (e.g. temperatures and pressures) as physical values are rarely stable and have a degree of random drift / noise of them. |
Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
Follow us on