Search Engine

41 Threads found on 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 (...)
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 ( (...)
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 (...)
Take a look at you are using systemverilog you should download the free LRM while it's still free. ht
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
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
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
Use Rand() function to generate random numbers convert the value to string and send the string to USART.
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 (...)
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 (...)
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 (...)
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 (...)
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 (...)
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 (...)
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. +++
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.
u can generate Captbl from encounter by using generateCapTbl command in Encounter..
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
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"
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 (...)