Random numbers

General discussion for topics related to the FreeBASIC project or its community.
dafhi
Posts: 1641
Joined: Jun 04, 2005 9:51

Re: Random numbers

Post by dafhi »

Lucky you :-) An improved diet is the only thing that helps me. Coffee ice cream is been holding me back atm.
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Random numbers

Post by dodicat »

Hi dafhi
I would say that
x ^= x shr 18
should be
x xor = (x shr 18)
in your code.
Anyway, great to see random numbers and cryptology morph into quaint philosophy almost instantaneously.
I do literally hate those in between bits.
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: Random numbers

Post by deltarho[1859] »

@dodicat

Morphing is instantaneous. There is no daylight between not morphing and morphing.

Quaint philosophy? The interaction between opposite sexes is deadly serious. I have exercised some flippancy in the past with near fatal consequences. I am very lucky to be alive. <smile>

Added: Removed my attempt at x ^= x shr 18, it was wrong.
Last edited by deltarho[1859] on Jun 05, 2018 20:59, edited 1 time in total.
dafhi
Posts: 1641
Joined: Jun 04, 2005 9:51

Re: Random numbers

Post by dafhi »

dodicat that totally fixed it.

deltarho the allergy bit .. i don't know. i'm sure having a hard time going vegan. universe keeps waving things like mashed potatoes, authentic italian pizza, other things. too lazy to attempt the vegan versions. this pizza i may have to attempt someday
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: Random numbers

Post by deltarho[1859] »

dafhi wrote:i'm sure having a hard time going vegan
I wouldn't even try - it is unnatural.

The source of a high percentage of our aliments is inflammation and many people eat far too much inflammatory foods. Check out Inflammation. It is a natural process but if it gets out of hand we get into trouble. Check out 11 Food Rules For The Ultimate Anti-Inflammatory Diet. It is a long read but a very good one.
dafhi
Posts: 1641
Joined: Jun 04, 2005 9:51

Re: Random numbers

Post by dafhi »

deltarho[1859] wrote:
dafhi wrote:i'm sure having a hard time going vegan
I wouldn't even try - it is unnatural.
I've been vegetarian for a little more than 10 years. Eggs trash me. I discovered that honey does this also. Universe been telling me I'm not fully ready. Like I said, if it wasn't for coffee ice cream (and the odd want of a slice of gourmet cheese), I'm basically vegan
Post Reply