Subhash Pavuskar wrote:How to Generate random number without using function ? can anyone tell me the logic ..
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Subhash Pavuskar wrote:@John Jai : You are using function here and i am asking about without using function call.
Subhash Pavuskar wrote:@Mohamed Sanaulla : I searched and they people used function ,so if you found the problem solution for the same then please let me know.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Imprecise!! A random number can be repeated. I once won £10 by guessing a coin. I stuck on “heads” every time and people said, “What about the law of averages?” There is no such thing as a law of averages, and I won the £10A few minutes ago, I wrote:. . . A random number generator is different; it generates a different result each time. . . .
suresh krishan wrote:random number is between 0.0 to 1.0
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Semi-exclusive.fred rosenberger wrote: . . . inclusive or exclusive?
Don't get me started about those stupid light bulbs. |