We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a usecase where I simply want a random integer, currently I need to call:
my_rand_int := rand.randInt(integer'low, integer'high);
This gives me RSI. How about a simple RandInt overload:
function RandInt return integer is begin return randInt(integer'low, integer'high); end function;
or simply provide default values on the min/max version:
function RandInt(min : integer := integer'low; max : integer := integer'high) return integer;
As far as I can tell, either would be backwards compatible.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In a usecase where I simply want a random integer, currently I need to call:
This gives me RSI. How about a simple RandInt overload:
or simply provide default values on the min/max version:
As far as I can tell, either would be backwards compatible.
The text was updated successfully, but these errors were encountered: