Search Engine **www.edaboard.com**

## Generate Random Numbers |

Are you looking for?:

generate random numbers matlab , random numbers , generate random bits matlab , generate random noise matlab

generate random numbers matlab , random numbers , generate random bits matlab , generate random noise matlab

41 Threads found on edaboard.com: **Generate Random Numbers**

most **random** number generators either give a result between 0-1 or give a result that is based on some limit, i.e. **random**(10) would give a result that is in the range 0-9.
If you want 2 significant digits then you can do something like 2.5+**random**(11)/10 (i.e. 2.5-3.5 inclusive).
Though I'm not sure if Ocean script allows for math to be (...)

PC Programming and Interfacing :: 10-13-2015 15:28 :: ads-ee :: Replies: **1** :: Views: **623**

AWGN - Add White Gausian Noise.
to **generate** white gaussian noise u need function that **generate**s **random** **numbers** with gaussian distribution (example randn in matlab)
If your enviroment doesnt have gaussian distributed **random** generator you have to make one using standard **random** generator ( (...)

Digital communication :: 06-25-2015 15:10 :: axcdd :: Replies: **1** :: Views: **936**

PLD, SPLD, GAL, CPLD, FPGA Design :: 03-15-2014 02:12 :: kam1787 :: Replies: **8** :: Views: **5196**

Take a look at you are using systemverilog you should download the free LRM while it's still free.
ht

PLD, SPLD, GAL, CPLD, FPGA Design :: 02-27-2014 23:11 :: ads-ee :: Replies: **1** :: Views: **1394**

it's true. from keil documentation
The rand function **generate**s a pseudo-**random** number between 0 and 32767
it's mean every time you restart your program it's **generate** the same sequence of **numbers**. You can use srand() function for each value it **generate** different sequence. Show this link

Microcontrollers :: 08-22-2013 22:16 :: #MAAM# :: Replies: **3** :: Views: **3463**

Do a for loop to **generate** N times 32-bit **random** **numbers**, and concatenate it to get your 10000 **random** bits. And obviously $**random** only works in simulation, not in real hardware.

PLD, SPLD, GAL, CPLD, FPGA Design :: 08-14-2013 11:51 :: mrflibble :: Replies: **5** :: Views: **744**

You could use an LFSR to **generate** your **random** **numbers**. Keep in mind that as usual this is pseudo **random**, but for an application like this that should be sufficient.
All you need t

PLD, SPLD, GAL, CPLD, FPGA Design :: 07-03-2013 10:53 :: mrflibble :: Replies: **11** :: Views: **1187**

Use Rand() function to **generate** **random** **numbers** convert the value to string and send the string to USART.

Microcontrollers :: 06-12-2013 07:36 :: jayanth.devarayanadurga :: Replies: **1** :: Views: **494**

simulate a uniform quantizer that takes as an input a vector of **numbers** and returns as an output the quantized vector.
1-**generate** a **random** input vector of 10000 samples **random**ly in the range from .
2-Simulate your quantizer three times with number of levels that are equal to 2 , 4 and 8.
3-The m-file output should (...)

Digital Signal Processing :: 11-01-2012 12:22 :: maldini89 :: Replies: **0** :: Views: **758**

I have a problem with the **random** number generator function with MPLAB c programming.
We use rand() to **generate** 2 **numbers**, but the 1st number is **generate**d **random**ly in odd sequence and the other number is **generate**d **random**ly in even sequence. The number is from 0-7. This is (...)

Microcontrollers :: 06-21-2012 07:54 :: gordon the light :: Replies: **4** :: Views: **910**

hi i am working on a vhdl project where i need to initialise 2d array which is 10*10 matrix actually of real values can ypu plz tell me how to do it?
also i need to **generate** a 10*10 array of **random** **numbers** which are 100 in number.... i thought of 3D arrays but output of lfsr is not being taken due to size mismatch
plz respond asap since i (...)

PC Programming and Interfacing :: 05-05-2012 18:37 :: geneticnetwork :: Replies: **0** :: Views: **582**

i wanted to use normrnd(mu,sigma,m,n) in order to **generate** **random** **numbers** from normal distribution with mean mu =0 and some standard deviation say sigma. this sigma will be used to study the effect of Kt/C noise but my matlab doesnt support statistical toolbox.
Another possibilty i look is to use randn(m,n) which has mean =0 and standard (...)

ASIC Design Methodologies and Tools (Digital) :: 01-05-2012 12:21 :: singhji0000 :: Replies: **2** :: Views: **930**

A counter justs counts, for it to stop at a **random** number, you have to stop the counter, but **random**ly. Can you do this without setting or clearing its count?. What you have to do is to **generate** a **random** number of pulses in a block that the counter counts. So a revesed biassed diode feeding an opamp (or two) with open loop (...)

Elementary Electronic Questions :: 11-22-2011 17:32 :: chuckey :: Replies: **1** :: Views: **796**

Hi, thanks for the reply
I am using the (rand(1,noNodes)>=0.8) formula
that **generate**s 0 and 1 with the prob I have chosen.
I want if zero to **generate** **random**ly specific abnormal values if 1 **random** normal values
then another case if fire detection happens **generate** other set of data
my prob how to (...)

Network :: 08-13-2011 18:35 :: pakitos :: Replies: **3** :: Views: **1376**

uxmanz,
If I understood correctly, what you posted don´t work.
Note that the built-in uC timer is colcked by same source than core.
It is necessary an external assincronous event to feed input of **random** funcion.
I performed something like what you said and **generate**d everytime the same value.
+++

Microcontrollers :: 05-01-2011 13:30 :: andre_teprom :: Replies: **4** :: Views: **12165**

I am generating normally distributed **random** **numbers** using Box-Muller Algorithm.Now I want to **generate** noise using the **random** **numbers** obtained from this worry is how do you map noise( something that is measurable in say volts) from the **random** number **generate**d.

Digital communication :: 01-03-2011 07:22 :: imsaurav :: Replies: **0** :: Views: **762**

u can **generate** Captbl from encounter by using **generate**CapTbl command in Encounter..

ASIC Design Methodologies and Tools (Digital) :: 10-05-2010 06:21 :: aravind :: Replies: **3** :: Views: **1550**

any help so far?:D
it is very simple:
just
***generate** **random** **numbers**
*use one of the digital modulation types (QAM , PSK, .....)
*IFFT
*parallel to serial
*and channel
(now do the reverse as a receiver)
this is a very basic type :)
regards

Digital communication :: 08-14-2010 18:52 :: Aya2002 :: Replies: **6** :: Views: **1566**

Using $**random**() you can do it. But you need to write a small code to it.
In the below link
Search for "**generate** **random** **numbers** without repetition"

PLD, SPLD, GAL, CPLD, FPGA Design :: 06-03-2010 03:59 :: www.testbench.in :: Replies: **2** :: Views: **1378**

Hi yurchec,
I understand that you want to flash the leds in **random** manner...
However, in vhdl there is no ready-to-use **random** function that **generate** **random** **numbers**..
You may write a function that functions **random** alike. Or you can find a library that has **random** (...)

PLD, SPLD, GAL, CPLD, FPGA Design :: 02-10-2010 07:14 :: Ilgaz :: Replies: **9** :: Views: **1219**

I'm interesting in generating some **random** **numbers** for one of my projects.
I have stumbled across the following code snippet:
It appears to use feedback shift registers to **generate** a pseudo **random** sequence.
Does anyone have any thoughts / comments / better examples?
Many thanks in adva

Microcontrollers :: 01-08-2010 14:04 :: the_merovingian :: Replies: **2** :: Views: **1976**

Hi,
How do i **generate** **random** **numbers** between given limits in simulink. For ex: between 25 - 30. At every sample time one of the value between 25 to 30 should be given out. (could be25, 26 , 30, 28, 25, 29, etc.,)
Thanks,
Ashwini

Digital Signal Processing :: 11-11-2009 11:45 :: ashwini1 :: Replies: **2** :: Views: **5390**

OK.
Take into account that the above code **generate**s uniformly distributed **numbers** in the range (14 bits).
Regards
Z

Microcontrollers :: 10-21-2009 01:22 :: zorro :: Replies: **7** :: Views: **3281**

function int unsigned $**random** ;
function int unsigned $u**random** ;
The seed is an optional argument.
Use the same seed to **generate** the same sequence of **random** **numbers** every time.
A common practice is to use a plusarg at the command line and read it in the testbench ($value$plusargs) and use it as a (...)

ASIC Design Methodologies and Tools (Digital) :: 06-25-2009 04:03 :: bharundi :: Replies: **3** :: Views: **1406**

I am currently modeling jitter in verilogA. For this i need to **generate** **random** **numbers**. This model is to be run with finesim as the simulator. Can anyone suggest any way to do this as finesim does not support $**random** function unlike spectre?

Analog Circuit Design :: 02-19-2009 09:59 :: sowmiya :: Replies: **0** :: Views: **1981**

Any one help me how to **generate** a **random** Process, with using any MATLAB functions. I want to know that what logic behind it if I want to **generate** 1000 points **random** **numbers**, Pdf is also given with mean and Variance.
But question is same How to **generate** the **random** (...)

Digital communication :: 09-15-2008 15:59 :: bhq :: Replies: **1** :: Views: **1808**

Hello!
I`m need to create clock stimulus with jitter.
I think that need to **generate** **random** **numbers** in desired range and
add/substract from constant for period.
What you think about this?
Can anyone share examples of VHDL code?
-- Regards, Jack

PLD, SPLD, GAL, CPLD, FPGA Design :: 07-15-2008 11:07 :: Black Jack :: Replies: **3** :: Views: **4386**

I need some help on a little project, and the objective is to design a sequencial machine simulating a lottery machine or lotto (I don't really know the exact word in english). the point is that I need to **generate** 4 **numbers** (4-bits each(hex)) and register them on four 8_digit_segments. I don't really know how can I **generate** (...)

PLD, SPLD, GAL, CPLD, FPGA Design :: 06-01-2008 14:06 :: frs89 :: Replies: **1** :: Views: **1181**

i want to **generate** **random** number from 0,1,2,3.but all this **numbers** are in binary.that is ,00,01,10,11.i want the vhdl code for this task.pleae help on this.

PLD, SPLD, GAL, CPLD, FPGA Design :: 05-14-2008 04:25 :: ruwanika :: Replies: **1** :: Views: **1194**

Hi guys,
Can anybody tell me about PRF64 function.
I know that we are using this to **generate** psuedo **random** **numbers**.
Please put more information regrding this.......
Regards,
PPPPPP

ASIC Design Methodologies and Tools (Digital) :: 11-15-2007 13:20 :: pradeep2323 :: Replies: **0** :: Views: **652**

I WANT TO **generate** **random**LY OCCURRING PRIME **numbers** FOR MY PROJECT WHICH IS BASED ON RSA ALGORITHM.
PLZ GIVE ME HINTS OR SOME LINKS ABOUT THE SAME.
THANX IN ADVANCE !!!!!!

PC Programming and Interfacing :: 09-12-2007 02:33 :: hemant2007 :: Replies: **0** :: Views: **1257**

can anybody plz tell me how to **generate** pesudo **random** sequence others then LFSR:?:

ASIC Design Methodologies and Tools (Digital) :: 06-07-2007 05:32 :: kumar85sunil :: Replies: **3** :: Views: **1534**

hi guys i am trying to implement RSA encryption algo on FPGA. my idea is to first **generate** **random** **numbers** and then check them for being prime **numbers** or not...
i am using linear feedback shift registers for **random** number generation. but now i am stuck in primality testing.....can anyone help me on this!!!please

PLD, SPLD, GAL, CPLD, FPGA Design :: 04-04-2007 17:00 :: onteri :: Replies: **1** :: Views: **1877**

I have **generate**d Pseudo Noise using a PIC 12c672 .Basically is having arrays . You can tap the array and exor it with a value. The sequence will repeat atfer some time, but looking it into an spectrum analizer it was enough for my purposes (apply this noise to a laser) .

Microcontrollers :: 12-18-2006 19:17 :: rfguy1 :: Replies: **7** :: Views: **1493**

Some **random** number **generate**s are sensitive to seed value, but an LFSR repeats the exact same sequence no matter what seed value you use (excluding that one lock-up value). The seed simply changes the sequence starting point. However, an LFSR is still very useful because it is easy to build one with an extremely long sequence.
It's true that you

ASIC Design Methodologies and Tools (Digital) :: 11-15-2006 22:55 :: echo47 :: Replies: **23** :: Views: **2871**

Here is what i use to **generate** a **random** numder within a given range
#include
#include
using namespace std;
int main(){
int rannum; // define variables
bool found = 1;
long sec;
time( &sec); // use time function to get number of seconds from 1/1/1970
srand((unsigned)s

PC Programming and Interfacing :: 05-27-2006 22:52 :: Lucifre :: Replies: **16** :: Views: **2591**

1. sin((1:1000)/10) is axample code to **generate** a fixed frequency wave.
2. First **generate** **random** serial **numbers**, then filter it using the filter desiganted by yoursefl.

Digital communication :: 03-13-2006 06:54 :: carpa :: Replies: **3** :: Views: **3366**

typically, the scrambler is a LFSR, just as what people use to **generate** pseudo-**random** **numbers**.
for a specific startand, like 802.11g, you should read the spec.

Digital communication :: 11-03-2005 01:06 :: yeewang :: Replies: **5** :: Views: **2460**

Does anybody know where to get a Matlab file that **generate**s very close to independent **random** samples? If you look at the higher order statistics of rand or randn, they are not as independent as I would like them to be. Any suggestions?

Digital Signal Processing :: 03-07-2005 20:31 :: spaaai :: Replies: **12** :: Views: **3207**

Hi.
Anyone knows how to **generate** **random** number in PIC? I am thinking of using timer to increase a counter and from the counter value, I do few operations to scramble up the value in counter. Does it cause the number to be **random**?
Or someone got better ways or ideas to do it?
Thanks.

Microcontrollers :: 01-19-2005 06:34 :: jcding1980 :: Replies: **11** :: Views: **15839**

There is a lot of implementation to **generate** pseudo**random** **numbers** implementin a cellular automata. I want to help you but i donot remmeber how to make it.

Microcontrollers :: 10-05-2004 16:34 :: seinfield :: Replies: **6** :: Views: **11354**

Previous
1
Next

Last searching phrases:

three way | three way | new look | new look | cant get | new look | and nor | getting came | zero appear | asking for help

three way | three way | new look | new look | cant get | new look | and nor | getting came | zero appear | asking for help