|
-
September 1st, 2010, 07:00 AM
#1
Generating random numbers
Good day people,
am struggling with a problem and i hope you can be of help.i want to generate 15 random integer numbers between 0-75,and none of the numbers once generated is repeated,e.g once 2,5,or 11 are generated by the subroutine or function they are not repeated again instead ,math.random() is called again to generate new integers until new integers different from those generated previously are produced...hw do i do this,do i get a variable to save the generated numbers and check this value against a new generated number.
i am developing this application for j2ME so i cant work with vectors or arrays.thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|