[thelist] math help...

Brian Cummiskey Brian at hondaswap.com
Thu Mar 16 15:44:50 CST 2006


Joshua Olson wrote:

> Assuming that the random is truly random, you should have (26 + 10)^5
> permutations, or 60466176.

Thanks Josh.

Time to tear apart this stored procedure...  looks like it's all taking 
place here:


if exists(
	select confirmation_code
	from TABLE
	where confirmation_code=@confirmation_code
	)
	---the confirmation code has been used
		begin
			goto repeat
			-- re-does the whole random process
		end
else
	---get the cconfirmation code successfully
		begin
			insert TABLE (confirmation_code)
			values (@confirmation_code)
		end



Looks right to me :(
Anyone see anything?




More information about the thelist mailing list