random function

Hi, I have taken a look at the random() function -> random() - Arduino Reference.

I wonder if there is any way to make random() could have the ability to take maximum values, which tend to infinity or at least to reach limit value of a int type.

I specifically mean, if random(300) returns at most 300, to express something as random(MAX) where MAX is the maximum size that holds an int.

Is there a way to do something like what I propose?

Thank you very much for your time.

https://www.google.com/search?q=avr+libc+random

Is there a way to do something like what I propose?

You know what the upper limit is for values that can fit in an int, right?

   int something = random(0, 32767);

jesussotofan:
I specifically mean, if random(300) returns at most 300, to express something as random(MAX) where MAX is the maximum size that holds an int.

Is there a way to do something like what I propose?

Thank you very much for your time.

What about somethingfrom that:

random(UINT16_MAX)

or 
random(INT16_MAX) 
or
random(UINT32_MAX)

These constants are definded in include file <stdint.h>