KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > util > Random

java.util
Class Random

java.lang.Object
  extended by java.util.Random
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SecureRandom
See Also:
Top Examples, Source Code, Math.random()

protected int next(int bits)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean nextBoolean()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[556]Random boolean value
By Anonymous on 2003/12/03 09:15:25  Rate
feldx [ j ]  [ i ] =Random.nextBoolean (  ) ;

public void nextBytes(byte[] bytes)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double nextDouble()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float nextFloat()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double nextGaussian()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int nextInt()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int nextInt(int n)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long nextLong()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Random()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1428]Random double value
By hanvando75 { at } daum { dot } net on 2005/05/15 23:17:58  Rate
 
 class TEST  
  {  
   public static void main ( String [  ]  args )  
    {  
     Double value = Math.random (  ) ; 
     System.out.println ( String.valueOf ( value )  ) ; 
  
  
        }  
  } 


public Random(long seed)
See Also:
setSeed(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSeed(long seed)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags