473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

arand()

Howdy:

I am working on some code (written by someone else), and this line cropped
up:

newParameters.row = currentParameters.row + (temp *
step.row * arand());

My questions are:
1. What is the arand() function?
2. How is it different from the rand() function?
3. Is there a reference on the web that can be consulted for this
information?
Note on question #3: I'm not just asking without looking. I did have a
quick look around, but no searches on "arand" or "arand()" seemed to give me
what I was looking for.

Thanks in advance for any help.

Regards,

pdm
Nov 13 '05 #1
4 2224
On Fri, 07 Nov 2003 17:12:38 GMT, "Pierre McCann" <mc*****@telus.net>
wrote:
I am working on some code (written by someone else), and this line cropped
up:

newParameters.row = currentParameters.row + (temp *
step.row * arand());

My questions are:
1. What is the arand() function?


It's not standard C. Try asking on a newsgroup which discusses
whatever platform this came from.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 13 '05 #2
"Pierre McCann" <mc*****@telus.net> wrote:
I am working on some code (written by someone else), and this line cropped
up:

newParameters.row = currentParameters.row + (temp *
step.row * arand());

My questions are:
1. What is the arand() function?
It is not a standard C function, and therefore unfortunately off-topic
in c.l.c. Furthermore, I never came across it, AFAICT.
2. How is it different from the rand() function?
It has an 'a' prepended. :) No, seriously: I don't have a clue.
3. Is there a reference on the web that can be consulted for this
information?
If it's part of a known extension library, a Google search should help.
Note on question #3: I'm not just asking without looking. I did have a
quick look around, but no searches on "arand" or "arand()" seemed to give me
what I was looking for.
Well, in that case you should search the code you are working on and the
libraries it uses (read: inspect the header files it includes). If this
doesn't reveal any useful information, asking in a newsgroup dedicated
to your implementation/OS/platform might help.
Thanks in advance for any help.


Sorry for being unable to help any further, good luck to you.

Regards
--
Irrwahn
(ir*******@freenet.de)
Nov 13 '05 #3
On Fri, 7 Nov 2003, Pierre McCann wrote:
Howdy:

I am working on some code (written by someone else), and this line cropped
up:

newParameters.row = currentParameters.row + (temp *
step.row * arand());

My questions are:
1. What is the arand() function?
2. How is it different from the rand() function?
3. Is there a reference on the web that can be consulted for this
information?
Note on question #3: I'm not just asking without looking. I did have a
quick look around, but no searches on "arand" or "arand()" seemed to give me
what I was looking for.


You need to work on your googling skills. Try searching for "random number
generator arand" and see what it get s you. Regardless, it is not part of
the C standard and there appears to be more than one answer.

--
Send e-mail to: darrell at cs dot toronto dot edu
Don't send e-mail to vi************@whitehouse.gov
Nov 13 '05 #4
Pierre McCann wrote:
.... snip ...
My questions are:
1. What is the arand() function?

.... snip ...

It is the rand() function called by a dyslectic Canadian, eh.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.