Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,162,936 members, 7,852,165 topics. Date: Thursday, 06 June 2024 at 01:23 PM |
Nairaland Forum / Science/Technology / Programming / Need Help(java Program) (812 Views)
Java Program To Solve Quadratic Equation-dealwap / How To Create A Small Gui(graphical User Interface) Using Jframe In Java Program / Import Dll Into Java Program (2) (3) (4)
(1) (Reply)
Need Help(java Program) by malone5923(m): 12:27am On Aug 02, 2008 |
Hi, Is it possible to get the seed value for sets of number like 5(not randomly generated). I have checked the Api for java but I can only get methods for setting seed values. |
Re: Need Help(java Program) by javarules(m): 7:22pm On Aug 08, 2008 |
import java.util.Random long seed = 1011001; Random rand = new Random(seed); int a = rand.nextInt() boolean b = rand.nextBoolean() etc |
(1) (Reply)
Design It Yourself Or Hire A Pro ? / A Programmer Wants An I T Placement / Can Anybody Explain This C Code For Me?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5 |