0
C++ Is there a different way to format random numbers between 2 numbers?
the book I'm using only gave me 2 examples but they both use the remainder(%). I know in MATLAB there were specific terms to easily state the max and min (range), so I was wondering if c++ have something similar.
2 Réponses
+ 4
You can have a look at the
#include <random>
library
There is something like std::uniform_int_distributiom<int> distribution(1,6)
+ 1
You can implement your own.
https://code.sololearn.com/cY209uir33FV/?ref=app