Results 1 to 4 of 4
  1. #1
    csr81 is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Default generate pseudo random numbers in java

    I need to know how to generate pseudo random numbers in java without using the Random class

    If anyone knows PLEASE let me know

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    Why not use Random? Are you asking us to do your homework for you?
    My Hobby Project: LegacyClone

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    The usual approach is to use a long linear recursive sequence and initialize it with a time stamp.

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by csr81 View Post
    I need to know how to generate pseudo random numbers in java without using the Random class

    If anyone knows PLEASE let me know
    Math.random() ?

    ;-)

Similar Threads

  1. Java program problem.. Arrays.. Random Numbers
    By Chewart in forum New To Java
    Replies: 16
    Last Post: 11-16-2009, 11:21 PM
  2. Replies: 8
    Last Post: 04-19-2009, 06:50 PM
  3. Replies: 7
    Last Post: 04-07-2009, 07:04 AM
  4. random numbers without using java funtions
    By carlos123 in forum New To Java
    Replies: 8
    Last Post: 11-16-2007, 11:13 AM
  5. How to generate random number in java
    By fernando in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •