Questions tagged [random-number]

A random number is a number that is generated by random number generator (RNG) unit or some teachniques. Random numbers have applications in gambling, statistical sampling, computer simulation, cryptography, completely randomized design, and other areas where producing an unpredictable result is desirable.

A random number is a number that is generated by random number generator (RNG) unit or some teachniques. Random numbers have applications in gambling, statistical sampling, computer simulation, cryptography, completely randomized design, and other areas where producing an unpredictable result is desirable.

52 questions
43
votes
11 answers

What is the smallest and simplest seed for a random number generator?

A small microcontroller (8-bit Atmel) controls a number of lights in order to present a light show with many fancy randomized light sequences. A suitable pseudo-RNG does its job nicely, but I'm looking for a good seed for it. A seed will be…
vsz
  • 2,554
  • 1
  • 17
  • 32
21
votes
7 answers

Random number generators using a GPIO pin?

I just read through question AVR Random Number Generator and encountered a number of ways to generate random seeds in an AVR: Use a special-purpose "Secure AVR" Use an internal temperature sensor Read unwritten EEPROM Measure time intervals between…
Vorac
  • 3,091
  • 5
  • 29
  • 52
21
votes
9 answers

Is Arduino ideal for making a HRNG (hardware random number generator)?

I'm putting together a design for a hardware random number generator that will utilize multiple sources of entropy (combined): Ambient light Ambient sound (and sound levels) Ambient temp Ambient humidity Position of the device itself (upside down,…
Tim Post
  • 733
  • 1
  • 6
  • 16
12
votes
7 answers

AVR Random Number Generator

I've read an appnote from TI (slaa338) that describes a technique for generating "for real" (as opposed to "pseudo") random numbers. It exploits the somewhat exotic clock subsystem of the MSP430 to achieve this goal. Does anyone know of a technique…
vicatcu
  • 22,499
  • 13
  • 79
  • 155
9
votes
4 answers

What are the differences between rand() function and RNG (Random number generator) peripheral?

I'm wonder for RNG (Random number generator) peripheral in STM32F4XXXX MCUs. look in this Reference Manual (page 748). On the other hand, we have the rand() function in stdlib library that do the same task. Now I have two questions: What are the…
Roh
  • 4,598
  • 6
  • 41
  • 86
8
votes
1 answer

Can I generate random numbers on PIC from INTOSC vs crystal?

Generating truly random numbers on a microcontroller is a known difficult task. One way is to run two different clocks, and measure the clock drift between them. The PIC16F1783 which I'm using does have two clocks. One using an external crystal and…
avl_sweden
  • 1,014
  • 1
  • 11
  • 19
7
votes
3 answers

Entropy Source on Microchip PIC24F

I am working to develop an Android accessory hardware. Currently, I am trying to generate an random number (C language) on a embedded system, but the value doesn't change. I am wondering if there is any entropy source that I can use to generator…
Ezylryb
  • 143
  • 8
7
votes
1 answer

Does a reverse-biased P-N junction create quantum noise?

It is my understanding that a highly doped, thin depletion region, reverse-biased P-N junction at low voltage can cause quantum mechanical tunneling. This (or sometimes avalanche breakdown) is used in some hardware random number generators.…
bsamek
  • 173
  • 4
7
votes
1 answer

Randomization of events in old hand-held games

I have very little background on electronic design. After studying a bit on how pseudo-random number generators work on general purpose computers, I became curious on how old hand-held games (like the Mattel Electronics series) randomized the events…
sgorozco
  • 173
  • 4
6
votes
4 answers

Can the "unknown" turn-on state of registers in digital circuit be used as seed for random number sequence?

We always like to reset registers in a synchronous digital circuit just after power up so they are in a known state before device operation begins. Pseudo random number sequences make use of a seed value. The rest of the sequence generated by the…
gyuunyuu
  • 1,933
  • 7
  • 31
6
votes
3 answers

Hardware sources of entropy on an FPGA

I'm building an FPGA feed handler and one of the problems is I want to do Monte-Carlo simulations which require a high-quality entropy source, i.e. a pseudo-random LSR implementation won't do. I've read that one can try using metastability as a…
Dmitri Nesteruk
  • 474
  • 2
  • 16
5
votes
3 answers

Pseudorandom bit generator: analogue circuit for microcontroller digital input

I want the most cost effective way for a basic pseudorandom number generator in a microcontroller. I will use the PIC16F54 which has extremely limited resources. I am thinking about using noise with simple analogue circuitry to generate random 1's…
Jodes
  • 5,044
  • 9
  • 48
  • 75
3
votes
1 answer

Is my avalanche noise "random?"

I'm working on a hardware random number generator based on the below design. It uses two reverse P-N junctions to create avalanche noise. I was looking at the circuit with my oscilloscope, and I found that the unamplified noise from the two…
rob
  • 225
  • 2
  • 7
3
votes
1 answer

How do we know for sure that this implementation of a Galois ring oscillator (GARO/GRO) will produce random numbers?

I simulated the Verilog code present in at this link that uses a Galois based ring oscillator to get truly random numbers. The crux of its operation seems to be: It is basically an LFSR type structure without the flip flops, so it is a…
3
votes
2 answers

How to get signal out of Geiger-Muller tube?

I am building a nuclear random number generator using an LND-712 Geiger-Muller tube (GMT). I have built a HV power supply circuit that converts the 3.3V output of my Adafruit Feather RP2040 micro-controller to the 500V needed by my GMT, you can see…
1
2 3 4