@_Felipe same thing when you want to loop over everything but do something different for the last element.
if(size ==0) {
return;
}
for(int i = 0; i < size - 1; i++) {
do_something(i);
}
do_something(size - 1);
@schteppe C++ allows you to chose the device where the randomness comes from and the distribution function, but the API is kinda shit, they could have made it a bit better.
@nathan_baggs_ C++ inherited this from C when doing arithmetic operation, anything smaller than int becomes an int so you are basically assigning an int to uint8 here