random generator

Thread Starter

random3

Joined Dec 25, 2010
2
dear, i have to make random number generator in DLD and i dont know how to do it, plz help me to do so, i m nervous pleeeeeese
 

marshallf3

Joined Jul 26, 2010
2,358
dear, i have to make random number generator in DLD and i dont know how to do it, plz help me to do so, i m nervous pleeeeeese
What voltage is it going to run off of, what components do you have available to you and what does the output have to be as? If it only has to light up an LED display it's easy to do, if you need to do it on a microcontroller or CPU it's no real big deal either.

10 X = RND(0)
randomValue = CInt(Math.Floor((upperbound - lowerbound + 1) * Rnd())) + lowerbound
x1 = ( x0 * a + c ) MOD (2^24)

You are nervous but shouldn't be, still haven't figured out what DLD is supposed to stand for.
 

thatoneguy

Joined Feb 19, 2009
6,359
Digital Logic Design

I am guessing something along the lines of a LFSR (Linear Feedback Shift Register), it is a Pseudo-Random number generator.

Is the RNG to be designed for simulation, discrete logic ICs, FPGA, or in a microcontroller?

Take a look at the LFSR Wiki Entry
 
Top