# Next Steps

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/)
- [Set up your environment](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/how-to-1/)
- [Run the baseline data-processing example](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/how-to-2/)
- [Identify code hotspots with Arm Performix](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/how-to-3/)
- [Accelerate distribution generation with OpenRNG](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/how-to-4/)
- [Measure performance improvements with a microbenchmark](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/how-to-5/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/openrng-with-performix/_next-steps/)

## Explore related resources
Find more information about the topics in this Learning Path:
- [OpenRNG project repository](https://github.com/arm/openrng)
- [Find code hotspots with Arm Performix](https://learn.arm.com/learning-paths/servers-and-cloud-computing/cpu_hotspot_performix/)
- [Optimize application performance using Arm Performix CPU microarchitecture analysis](https://learn.arm.com/learning-paths/servers-and-cloud-computing/performix-microarchitecture/)

## Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

### Which package manager should I use during setup if I'm using Ubuntu or Debian?
Replace `dnf` with `apt` on Ubuntu or Debian.

### What result should I expect when I run the baseline example?
You’ll see the number of generated points, the count within a rectangular window, and the shortest distance from the origin across the full distribution. You generate the points by adding Gaussian and uniform distributions. Use this run to establish baseline behavior before profiling and acceleration.

### What should I look for in the Arm Performix Code Hotspots report?
Focus on `generateDistribution`, the primary hotspot in the example flame graph. You’ll see more time spent in Gaussian sampling with `std::normal_distribution` than in uniform sampling. Prioritize random-number generation rather than `min_length`, which contributes negligible runtime in the example.

### Which OpenRNG API should I use to speed up distribution generation?
Use the Vector Statistical Library (VSL) API with a stream object to generate values in bulk. This vector approach reduces per-call overhead for random number generation.

### What output indicates the microbenchmark sweep ran correctly?
The sweep times the isolated distribution generator across eight sizes from 2^8 to 2^15 and reports elapsed time in microseconds. Run both baseline and accelerated builds, then compare timings across sizes to evaluate scaling and improvements.
