unsigned int simple_rand()
{
unsigned int uninitialized;
return uninitialized;
}
Name:
Anonymous2007-06-05 23:17 ID:C0DCPVRs
am i doing this rite?
unsigned int ___()
{
unsigned long _;__asm__ __volatile__ ("rdtsc" : "=A" (_));
unsigned int a,b,c,d,e,f=0;
for(a=b=1; a<33; a++, b<<=1) {
c = (((b&_)>>(a-1))<<2)+(((b&(_<<1))>>(a-2))<<1)+((b&(_<<2)>>(a-3)));
for(d=e=1; d<c+1; d++,e<<=2);
f|=e&0x1e;
}
return f;
}
Name:
Anonymous2007-06-06 3:39 ID:ILraplL7
#include <iostream.h>
int main()
{
return 0;
}
Name:
Anonymous2007-06-07 2:28 ID:efQPMleF
>>18
rdtsc is awesome. This isn't in C, but whatever. Here's a ghetto random number generator in x86 Assembly, intel syntax.
rand:
rdtsc
sub eax, edx
ret
Not really much to it, but I use it for assembly stuff.
Name:
Anonymous2007-06-07 3:36 ID:fzbbgEDv
IF U WERE DROPPED TO /opt TOMORROW, I WOULDNT GO 2 UR DELETION CUZ ID B N UPSTREAM BUGZILLA FLAMIN DA CUNT THAT MADE UR EBUILD!
__
.' `.
|a_a |
\<_)__/
/( )\
|\`> < /\
\_|=='|_/
WE TRUE NERDS
WE OPTIMIZE OUR CFLAGS TOGETHER
WE TALKIN ON IRC WITH www.opera.com TOGETHER
send this PENGUIN to every thread you care about including this one if you care. C how many times you get this, if you get 256 your A TRUE NERD
Name:
Anonymous2007-06-07 4:51 ID:vzq7avZ0
>>5
You probably want to name that method getRandomIntegerIntance
The DES bs cmp functions for a while looking for ideas of what you need but the procedure is an example of how it can HAVE xx TO GO TO A new language very easy w3schools com offered some pretty ugly shit cough.
Name:
Anonymous2009-03-06 12:00
/prog folder is empty forms no indication as to how well you know its possible to achieve happiness and satori The two functions that manage this cycle are?
Name:
Anonymous2009-03-06 13:58
The cycle stops when the number on top of stack is positive and affirmative as anything to do with the topic or is this just your way to get it the way to go to bed now.