First: This isn't really a question related to Android development.

Second: Random unique numbers between 1 and 9 (including both
extremes) is a set of 9 numbers (I really hope that we are talking
about integers and not real/floating point numbers).

Third: If you request a unique sequence of numbers 1 to 9 it can't be
random as it would include a check for uniqueness that would remove
some degree of randomness.

On Wed, Jun 19, 2013 at 11:56 AM, vamshi ch <[email protected]> wrote:
> Hi All,
>
>      In my application i want to generate random numbers between 1 to 9 and
> that is unique. once i get the random number that should not be repeated for
> any one, any where and for me also. it's similar to OTP(one time password)
> but some time OTP will be repeated and that is alphanumerical but in my case
> that should not be happen and i need numbers only.
>
> Please can you tell me what is the approach to achieve it. Please help out
> of this..
>
>
>    Please share the code if you have any regarding this..
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
Michael Banzon
http://michaelbanzon.com/

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to