random number generator

Hello,

i need documentation or/and implementations on how to create a number generator ?

Any help will be appreciated,

Thanks !
Last edited on
What is a burst generator? sinunoidal pulses you mean?
probably (or how i imagine it) it is when we have a sequence of random numbers lets say in a range of [0, 10] and suddenly we receive very high numbers, like 100.

but i need some documentation or implementations in any language (i mean c, c++, java or whatever)

Of course any help will be appreciated,

Thanks!
Last edited on
Could you give an example?
Assuming you're not talking about the Chemical Brothers song a burst generator is a device used in electronics and music synthesis to gate a sine wave with an envelope. Here is an example of a circuit that uses a cosine shaped envelope: http://sound.westhost.com/project58.htm (Most likely this sound is used in the Chemical Brothers song but I've never heard it.)

Simulating this with a computer program is done all the time in music synthesizer products but I don't know of any specific documentation sources.

I think your first step should have been properly defining your needs. Asking us to provide an implementation on a concept you can only "imagine" isn't going to go too far although you're description going from low numbers to suddenly high ones makes me think you are talking about gating a signal.
OK, lets dance : http://bit.ly/aBpWm

Could you give an example?


an example the sequence :

0, 2, 4, 6, 1, 2, 5, 7, 8, 9, 3, 10, 1503, 1, 2, 5, 6, 8, 9, 10, 3, 7, 2, 2, 1000, 1, 4 etc

we have numbers between [0, 10] and suddenly we receive large numbers like 1503 and 1000.

ps. ok i changed the title to random number generator, because the previous sound funny.
Last edited on
This is a reference for random numbers

http://www.cplusplus.com/reference/clibrary/cstdlib/rand/
ok thanks!
Also remember to seed random number generator. Use for example ctime library for that.

http://cplusplus.com/reference/clibrary/ctime/
http://cplusplus.com/reference/clibrary/ctime/time/

example:
srand(time(NULL));
Topic archived. No new replies allowed.