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.

Filter by
Sorted by
Tagged with
1
vote
1answer
132 views

Why is this VHDL pseudo random number generator not working as expected?

I'll start off by saying I have about 2 days experience in VHDL so there's a strong chance my code is horrible. I would appreciate any tips on better VHDL practice. I am busy trying to simulate a ...
0
votes
2answers
79 views

Difficulty of implementation of this Rayleigh variate generator on simpler FPGA

For a university module we have been tasked with a 'research project' whereby we need to implement an FPGA non-uniform variate generator. I've identified one possible choice for the specific ...
0
votes
1answer
135 views

Ring Oscillator on FPGA for TRNG

I am implementing a TRNG on an FPGA. This TRNG is based on jitter created by ring oscillator and I would like to know how to implement the given ring oscillator on FPGA so that jitter is generated. <...
0
votes
1answer
98 views

How to generate positive and negative random numbers in VHDL

In my VHDL testbench, I have a configurable parameter DATA_WIDTH which is set to power of 2 such as 16-bits. I want to generate random signed numbers (2's compliment) of bit width as DATA_WIDTH. For ...
0
votes
3answers
168 views

Is there an IC that will output randomly?

Recently I've started collecting those tiny arcades boxes, and found some information to wire them so they stay on the demo mode. This way they can be used as a decoration. Here's an example vid of ...
3
votes
1answer
303 views

Help understanding 1986 schematic for Rohde & Schwarz cryptographic key generator

From https://www.cryptomuseum.com/crypto/rs/pu104/index.htm :- PU-104 was a key generator for perforated paper tape, made around 1986 by Rohde & Schwarz (R&S) in München (Munich, Germany). ...
3
votes
3answers
2k views

How can I get random numbers on AVR?

I will try to make the game MegaMind. I need to get a random number, but how can I get these? I have tried something: secret_code[1] = random()&=6;
1
vote
1answer
99 views

Why is it that true random number generators are not in every computer? [closed]

I understand that one of the fundamental pillars of the programmable computer, is that we should implement features with software rather than hardware, anytime it is possible & more efficient (or ...
1
vote
1answer
114 views

Is Modular Entropy Multiplication really a new form of entropy?

I have come across Modular Entropy Multiplication (MEM) on GitHub. It's used as an entropy source for a hardware true random number generator called REDOUBLER. I've never seen such a circuit. Ye olde ...
0
votes
1answer
53 views

If constraints in SystemVerilog

I have a class of sequence item with rand variables: class my_seq_item extends uvm_sequence_item; rand bit a, b, c, d; I want to generate a random bit for 'd' ...
-1
votes
1answer
176 views

Making a random number generator [closed]

I need a random number generator. How would I make a random number generator circuit? What would be the best(i.e. smallest, least number of parts) way to make one?
1
vote
2answers
185 views

Random number generation with skewed distribution

I would like to implement a fully-digital circuit that can generate a random variable X with P(1)=p, P(0)=1-p (where, ideally, the probability p would be configurable with a programmable parameter). ...
0
votes
2answers
157 views

Can any part of Intel's (RdRand) random number generator be visually inspected?

A random number instruction RdRand, has been added to Intel's Ivy Bridge processors that (allegedly) draws upon a hardware entropy circuit. The architecture is (allegedly) something like this:- The ...
3
votes
3answers
383 views

Avalanche diode random source design

I've seen lots of examples of avalanche diode (or other reverse PN junctions) white noise sources, and before I go out and build it, I've got some questions about the design. First, my first cut at it:...
0
votes
3answers
1k views

How to design a circuit for genrating random numbers

I'm working on a project, where we need to generate random numbers between 1-5. After researching a bit I figure out generally ...
0
votes
1answer
78 views

Are radioisotope HRNGs commercially available? [closed]

I figure if they use Americium-241 pellets to make commercial smoke detectors, there's no reason they cannot use such pellets for hardware random number generators. I read an unconfirmed anecdote that ...
6
votes
3answers
782 views

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 ...
1
vote
3answers
458 views

4017 Counter LED Shuffle By Touch

Hi all, I found the following circuit on the internet and made it on the back of a business card as a fun project. The idea is that you ask a question, touch the naked wire, the lights shuffle and ...
3
votes
1answer
225 views

What is the purpose of masking the LFSR value in STM32's noise generation?

I read on section 14.3.8 of the STM32F4 reference manual that you can mask the LFSR output value partially or totally. At first I thought that it was used to change the pseudo random pattern (...
2
votes
2answers
2k views

Method of generating a random binary number using gates

I was wondering how a computer or any other device can generate random numbers. Is there a way to do this using only digital parts(non-programmable parts such as gates)? When I think of it, it seems ...
41
votes
10answers
6k views

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 ...
0
votes
1answer
114 views

How a robot can Identify numbers?

Suppose, I have 10 pieces of PVC squares. Each PVC square has a number printed on it. I want to create a robot who identifies the number printed on a square. Can anybody give any ideas? I mean is ...
7
votes
1answer
908 views

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 ...
0
votes
1answer
725 views

Are Germanium Zener diodes still obtainable?

I need a Germanium Zener diode for a shot noise generator circuit. If I am correct, Silicon replaced Germanium for use in diodes and other semiconductors because of the fact that Germanium diodes have ...
2
votes
3answers
685 views

Randomising diode

I've been watching Minder DVDs and one of the extras from Series 6 is a Premium Bonds ad from 1986 which explains that their super-duper ERNIE 2 machine uses diodes (I think) that emit pulses at ...
1
vote
1answer
163 views

Generating pseudo-random numbers with restricted hardware

I have a need to generate a 448-bit value that appears random, for use in a test circuit. The "randomness" of the values is not overly important; the size of the generator hardware is. I am using an ...
0
votes
3answers
157 views

concept for true random number generators

I have an idea. Lets say we have an unpowered TTL set-reset flip flop with both inputs tied to 5v(logic high). When we apply power to the flip flop, it goes into a quiescent state, so there is no ...
2
votes
1answer
54 views

Separating a PORT into in/out and getting random nums?

Using ATMega1284 I want to generate a random number from 0-7 (maybe more range). This is the main concern. As long as it "feels" random its fine. And it could resolve the rest of my issues... anyways ...
9
votes
4answers
5k views

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 ...
5
votes
1answer
2k views

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 ...
7
votes
1answer
225 views

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 ...
1
vote
3answers
101 views

A subsystem with randomised outputs (no microcontrollers)

I'm trying to make a subsystem that has several outputs. By default, all outputs are 0. When turned on, I want it to randomly set one output to 1, and make it stay at 1 until reset (the reset ...
3
votes
1answer
462 views

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 ...
5
votes
3answers
671 views

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 ...
22
votes
7answers
4k views

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 ...
7
votes
3answers
2k views

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 ...
12
votes
7answers
7k views

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 ...
20
votes
9answers
5k views

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 ...