intro to random number generation Flashcards

1
Q

rand()

A

function supplied in stdlib
*returns number between 0 and RAND_MAX (32767)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

pseudo-random number generators (srand/rand())

A

use algorithm and input to return a value
*input is a seed or some positive integer to operate on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

srand()

A

supplied by stdlib
*allows programmer to supply their own seed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly