why the array bounds array

BCS ao at pathlink.com
Sun Dec 7 21:57:50 PST 2008


Reply to Michael P.,

rand() & TYPES_OF_TILES

never use rand like that (the low order bit on many rands toggles every single 
time) 

better (I think):

rand() / (TYPES_OF_TILES / RAND_MAX)




More information about the Digitalmars-d-learn mailing list