Randomization problem

Adam Osth adamosth at gmail.com
Mon May 18 18:41:25 UTC 2009


I'm having a little problem with randomization code in Ebasic. I have this
code:

Dim drawno As Integer
drawno = Random(0, 7)

...and yet, drawno is initialized to '0' every time. This code is used for 8
repetitions in the program, and each time "0" comes up. Even with
"Randomize" in front, the same thing happens.

Is there something I'm doing wrong?

Adam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20090518/4e487e3b/attachment.htm>


More information about the Eprime mailing list