
charmer said:hi mate,
can u make a random number generator which predticts the next drawing number (between 1-40) according to the previous 10 drawn numbers for bingo / lotto games please
Randomize
MsgBox (Fix(Rnd * 39)+1)

madurax86 said:Java is abit high level on variables we can code somthing similar to that in vb6(using strings and it'll have a very high storage) but speed gets lower so i stayed with c++, in this one nCr is not only being calculated; the simplifying of factorials is done thru the code too![]()
Im.Just.a.Fool said:What is the range of long long in C++?
If the range is -2^64 to 2^64-1, the program I posted in #14 should work well when converted into C++.
i just put it because double tends to use scientific notation at 6 numbers(i think) nCr needs precision more than that ne so I used the long long, and long long long turned out to be the joke
and fastermadurax86 said:Do you use the factorial simplification in ur code?


nagaya said:64bit ta compile kare long long daan![]()
![]()

Im.Just.a.Fool said:kohoma hari C++ wala long long variable eka 32 bit walata wada wadi wenna one.
nathnam nCr(51,25) = 247,959,266,474,052 value eka store karala thiyaganna bahane
247,959,266,474,052 store karanna adu gane 48 bits one![]()


madurax86 said:machine eka nam 64bit capable eth windows xp 32bit professional ne hari koma hari output wenawa ne
oyage krame hodai prathamaka saadaka walata man balanne haraye tiyena numbers walin lawaye eka number ekak hari bedenawa nam purna sankyawak denna bedala harayai lawayai wenama sulu karala passe bedhanawa![]()

Im.Just.a.Fool said:ah ow eka thamai oyage program eken karanne. For e.g. for nCr(51, 25)
x = 29 31 35 37 39 41 43 9 47 4 49 10 51
y = 21 25 26
kiyana values thamai ithuru wenne. anith numbers okkoma are nested for loops deken sulu karaddi kapila kapila yanawa
n = 52 weddi x wala numbers wadi karaddi p variable eka overflow wenawa. ethakota thamai output eka waradinne
madurax86 said:yup eka thama 51ta witharak thibbe
wena kramyak ahu une na thawa optimize karanna oya range ekatama
. me wage ewatanam kamathi 
. padam karannath hari kammali. godak aya danna dewal walin bagayakwath mama danne na.Im.Just.a.Fool said:machan are you a university student or still schooling?
mata business programming wadiya allanne naha. me wage ewatanam kamathi
But I'm just a fool so moley bohoma aduwen thamai wada karanne. padam karannath hari kammali. godak aya danna dewal walin bagayakwath mama danne na.
Scientific programming/System programming karana ayata lankawe jobs thiyenawada?
thama uni giye naa
ohoma thamaa
fixed that i'll up it later, im going now tc