text: /* file: normal_dense_batch.cpp */
  /*******************************************************************************
  * Copyright 2014-2020 Intel Corporation
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *******************************************************************************/
  
  /*
  !  Content:
  !    C++ example of normal distribution usage
  !******************************************************************************/
  
  /**
   * <a name="DAAL-EXAMPLE-CPP-NORMAL_DENSE_BATCH"></a>
   * \example normal_dense_batch.cpp
   */
  
  #include "daal.h"
  #include "service.h"
  
  using namespace std;
  using namespace daal;
  using namespace daal::algorithms;
  using namespace daal::data_management;
  using namespace daal::algorithms::engines;
  using namespace daal::algorithms::distributions;
  
  int main()
  {
      /* Create input table to fill with random numbers */
      NumericTablePtr dataTable(new HomogenNumericTable<>(1, 10, NumericTable::doAllocate));
  
      /* Create the algorithm */
      normal::Batch<> normal;
  
      /* Set the algorithm input */
      normal.input.set(distributions::tableToFill, dataTable);
  
      /* Set the Mersenne Twister engine to the distribution */
      normal.parameter.engine = mt19937::Batch<>::create(777);
  
      /* Perform computations */
      normal.compute();
  
      /* Print the results */
      printNumericTable(dataTable, "Normal distribution output:");
  
      return 0;
  }
  