Tags » Random Number

A generic Fisher-Yates Shuffle

It’s been a long time I have done any activity in this blog. I was going through some old stuffs and thought to post something. Today I will post a generic implementation for… 1,577 more words


Tomcat Server Slow Due To Blocked SeedGenerator Thread on Insufficient Random Number On Linux

An application deployed on Tomcat server (via Coldfusion11) suffers slowness problem. Sometimes opening up a https page could take 20 seconds or so. The problem was not experienced on CF9 (which doesn’t use Tomcat). 693 more words

Tool And Debug

The Tosser

Here’s a LEGO dice-tossing machine I built.

The two complicated parts are the reduction gear train and the flaps that re-center the dice so that the machine can pick it up correctly each time. 154 more words


66% chance of new car

Do you remember, or have you at least heard of the old game show “Let’s Make a Deal”? This was the show where a contestant had to opportunity to win a car. 118 more words


New Quick Picks !

Did you know that you can play Quick Picks in Play Whe and Pick 2  games ?

The Quick Picks in Play Whe are limited to 1 dollar marks. 54 more words

Play Whe

Generate random, alphanumeric, password and other types of string with php

While doing our projects we often need to create random strings. These strings are useful in cases like creating a strong password, generate a id, use in validation or any other purpose. 805 more words


Generate random number between two given values in BPEL

The following Java code snippet will generate the random number between two given values which are 0 and 5 in our example.

System.out.println("Entry : Java Embedding");    
java.util.Random r = new java.util.Random();    
int Low = 0;    
int High = 5;    
int R = r.nextInt(High-Low) + Low;    
System.out.println("Value of R : "+ R);    
System.out.println("Exit : Java Embedding");    
… 135 more words