/**
* Tests NumPHP::randLike with vector
*/
public function testRandLike()
{
$numArray = new NumArray([1, 2, 3]);
$rand = NumPHP::randLike($numArray);
$this->assertInstanceOf('\\NumPHP\\Core\\NumArray', $rand);
$this->assertSame([3], $rand->getShape());
$randData = $rand->getData();
$this->assertCount(3, $randData);
foreach ($randData as $entry) {
$this->assertInternalType('float', $entry);
}
}