BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 10-09-2010, 07:50 AM   #1 (permalink)
New Member
Join Date: Aug 2010
Model: 8800
Carrier: to developing blackberry application
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default To generate the random numbers

Please Login to Remove!

How to print the random number generation sequence in blackberry development . .

nanda . .
Old 10-09-2010, 09:14 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

Did you look at the javadocs?

public class Random
extends Object

An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.)

If two instances of Random are created with the same seed, and the same sequence of method calls is made for each, they will generate and return identical sequences of numbers. In order to guarantee this property, particular algorithms are specified for the class Random. Java implementations must use all the algorithms shown here for the class Random, for the sake of absolute portability of Java code. However, subclasses of class Random are permitted to use other algorithms, so long as they adhere to the general contracts for all the methods.

The algorithms implemented by class Random use a protected utility method that on each invocation can supply up to 32 pseudorandomly generated bits.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Honeywell thermocouple
Honeywell thermocouple picturelot of plumbing supplies flapper valves, thermocouples, relief valve, fixtures
lot of plumbing supplies flapper valves, thermocouples, relief valve, fixtures  pictureWATLOW G342242 THERMOCOUPLE NEW NO BOX
WATLOW G342242 THERMOCOUPLE NEW NO BOX pictureOmega SDX Thermocouple Handles (3)
Omega SDX Thermocouple Handles (3) pictureJ-KEM Scientific Model temperature controller 4-channel thermocouple two
J-KEM Scientific Model   temperature controller  4-channel thermocouple two picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.