I am passing a unsigned 64 bit integer as the upper limit to random and receiving "(random: error in source expression), char 4"
put random(18446744073709551615) into _random
What is the max random can take?
Ramdom
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Kevin,
The max value for an argument of the random function is 2^32-1. Don't ask me why, this was a choice made by RunRev.
Best,
Mark
The max value for an argument of the random function is 2^32-1. Don't ask me why, this was a choice made by RunRev.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Location: London, UK
- Contact:
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Location: London, UK
- Contact: