MCPcopy Create free account
hub / github.com/cusplibrary/cusplibrary / random_array

Method random_array

cusp/array1d.h:681–682  ·  view source on GitHub ↗

! This constructor creates a random_array with a given * size starting and value * \param size The number of entries. * \param seed The initial value to seed the random number generator. */

Source from the content-addressed store, hash-verified

679 * \param seed The initial value to seed the random number generator.
680 */
681 random_array(size_type size, size_type seed = 0)
682 : Parent(rand(seed).begin(), rand(seed).begin() + size) {}
683};
684
685

Callers

nothing calls this directly

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected