Search Engine www.edaboard.com

# Generate Random Numbers

41 Threads found on edaboard.com: Generate Random Numbers

## Generate random numbers between two numbers in ocean script

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

## How to generate AWGN.??

AWGN - Add White Gausian Noise. to generate white gaussian noise u need function that generates 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 ( (...)

## Problems with random number generation

For my test bench I need lots of independent random numbers. I have about 5 instances where I use a for loop and \$urandom_range(x,y) to generate a selction of random numbers fine. However, I now want to be able to perform multiple runs of the simulation, changing the (...)

## Weighting a random number in systemverilog

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

## Generatng random number in Keil C51 Compiler

it's true. from keil documentation The rand function generates 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

## generating random bits on verilog

hello people on edaboard:) , i need to generate random bits with a length of (say) 10,000 bits on Verilog. i looked it up and found that \$random command generates 32 bit random numbers but how can i use it to get 10000 random bits? help please

## Random Numbers at particular rate in fix time interval

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

## 16F877A serial communication

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

## Help!Simulate a uniform quantizer ?

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 randomly 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 (...)

## Random number generator

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 generated randomly in odd sequence and the other number is generated randomly in even sequence. The number is from 0-7. This is (...)

## 2D and 3D arrays initialization and working with them

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

## regarding random number generation in matlab

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

## How to modify a 4 bit counter to generate truly random numbers

A counter justs counts, for it to stop at a random number, you have to stop the counter, but randomly. 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 (...)

## randomly generate node sensor data(matlab)

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

## How to generate random numbers in "C" with AVR Studio?

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 generated everytime the same value. +++

## Generation of noise using random numbers

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

## to generate Captble for encounter by itf files

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

## How to simulate OFDM model in matlab....plz reply

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

## non repeated random number generator??

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"

## Needed help (16 bit LEDs on the VHDL)

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