This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Mastering Corda: Blockchain for Java Developers and have Jamiel Sheikh on-line!
See this thread for details.
Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

Shreedhar Naik

Greenhorn
+ Follow
since Aug 23, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shreedhar Naik

Hi,
Thanks for your response. First I am generating the random number and storing the same into a csv file each line of file will have 254 random numbers with ',' (except the last number of each line). I need to open the same file in Microsoft Excel and it only 256 columns due to that only i am doing like this. and the code which i have written for the same is as below;



-Thanks
Shree
11 years ago
Hi All,

I have generated 1 crore random numbers using java's SecureRandom and stored all those numbers in a .csv file.
As mu next step i noticed that in the .csv file i have lots of duplicate numbers.

So now i need to delete all duplicate numbers from that file. Please any one help me.

OR just let me know if you are aware of any other methods to generate unique 1 crore random numbers.
11 years ago
Thanks for you quick resonse: But here i need to generate the numbers which should be seed based. If some one wants to generate same random numbers we need to just change the seedNumber and has to generate:

and here code goes like this:




I should be able to generate the 1 crore random numbers: can you please give me the more details or any link which will help me to generate the truly random numbers. I am new to java just trying to lean...


Thanks
-Shree
11 years ago
Hi,

I am new to Java i have a assignment and that is i need to generate 1,00,00,000 (one crore ) random numbers and which should be seed based random numbers.

I have tried to write the program using java.util.Random; package and also using the setSeed method. But here i am getting duplicate numbers. For that i am first generating the random number and making the generated number as a key for a hashTable, So the hash keys will not be duplicates.

But here the problem is I am able to generate till 10 Lacs Numbers. If i try to generate more 1 Crore number I am getting the ERROR:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Hashtable.rehash(Unknown Source)
at java.util.Hashtable.put(Unknown Source)
at randomNumber.RandomNumbersHash.main(RandomNumbersHash.java:19)


Please can any one help me. about this OR tell me which is the better way to generate unique random numbers in huge;

-Thanks in Advancs
Shree

11 years ago
Hi All,

While running some programs, often i use to get the following ERROR from Java, but I am not aware about the reason. If some one know about this please answer to this post.

ERROR

Welcome to the Sun Java Enterprise System 2005Q4!

For your convenience, this server has come equipped with components from the Java Enterprise System, the new infrastructure software consolidation. This system is available for a 90-day evaluation and is also deployment ready. It includes the following network services:

- Communication and Collaboration Services
- Portal Services
- Network Identity Services
- Availability Services
- Web and Application Services
- Security Services

You can find more information on all of the ways in which you can utilize the Java Enterprise System at: sun.com/software/javaenterprisesystem

In order to take advantage of the benefits of the Java Enterprise System, you must first have agreed to the conditions of the license agreement. The license can be viewed either online at: sun.com/software/javaenterprisesystem/licensing
or by running the installer as referenced later.

The following products have been preloaded in /var/spool/stage/JES_05Q4:
- Sun Java(tm) System Access Manager 7 2005Q4
- Sun Java(tm) System Application Server Enterprise Edition 8.1
- Sun Java(tm) Calendar Server 6 2005Q4
- Sun Java(tm) Communications Express 6 2005Q4
- Sun Java(tm) System Communications Services Delegated Administrator 6 2005Q4
- Sun Java(tm) System Directory Server 5 2005Q4
- Sun Java(tm) System Directory Proxy 5 2005Q4
- Sun Java(tm) System DSsetup 6 2005Q4
- Sun Java(tm) System Instant Messaging 7 2005Q4
- Sun Java(tm) System Message Queue 3.6 2005Q4
- Sun Java(tm) System Messaging Server 6 2005Q4
- Sun Java(tm) System Portal Server sjps6 2005Q4
- Sun Java(tm) System Portal Server, Secure Remote Access 2005Q4
- Sun Java(tm) System Web Server 6.1 2005Q4 SP5
- Sun Java(tm) System Web Proxy Server 4.0.1 2005Q4
- Service Registry 3 2005Q4
- Sun Cluster(tm) 3.1 8/05

In addition to the Java Enterprise System Products listed above, you can also download and install Java Enterprise System interoperable products at the following link http://www.sun.com/software/javaenterprisesystem/get.xml. The following interoperable products are available by electronic download only:

- Sun Cluster(tm) 3.1 8/05 Agents for SPARC and x86
- Sun Cluster(tm) Geographic Edition 3.1 08/05
- Sun Java System Identity Manager 5 2004Q3
- Sun Java Studio Creator, 2004Q2
- Sun Java Studio Enterprise 7 2004Q4
- Sun Java N1 Service Provisioning System

More information on the preinstall can be found at: sun.com/software/preinstall
Product documentation can be found at: docs.sun.com/app/docs/prod/entsys.05Q4

Depending on your architecture, the Java Enterprise System image can be found in either one of these locations:


cd /var/spool/stage/JES_05Q4/Solaris_sparc or
cd /var/spool/stage/JES_05Q4/Solaris_x86


and can be installed by running the following commands:
GUI mode: ./installer
CLI mode: ./installer -nodisplay
PLEASE NOTE: On systems pre-installed with Solaris 10 11/06, if you want to install the Application Server or Message Queue products from Sun Java Enterprise System 2005Q4, you must first run the following commands as superuser:


yes | pkgrm `pkginfo | grep -i "application server" | awk '{ print $2 }'`
yes | pkgrm `pkginfo | grep -i "message queue" | awk '{ print $2 }'`
12 years ago
Hi All,

I am new to JAVA and now I started learning JAVA by referring Complete Reference book. After that I am planning to read the book SCJP and take the Exam. I need to ask that "Is I am going in proper way of studying for the SCJP Exam ?".
Hi Everybody.

I am new to this forum. I am seeking to take the SCJP Exam by the end of October, 2007. For that all of yours suggestion and helps will be the most helpfull for me...

Thanking You
Shree