‎11-06-2008 04:20 PM
‎11-06-2008 04:22 PM
‎11-06-2008 04:36 PM
Hi ,
Try this program
Best regards,
‎11-06-2008 04:39 PM - edited ‎11-06-2008 04:40 PM
Eugen Graf wrote:
Random*6 and convert to integer
This will not be random, because 0 and 6 will only occur at about half the frequency of the other numbers.
You need to multiply by 7 and then round towards -inf to get equal probability for all seven numbers.
‎11-06-2008 04:41 PM
‎11-06-2008 04:44 PM
yes you are right, am trying to attach it but every time it gives unexpected error, any way you gave the code, thanks
Best regards,
‎11-06-2008 04:51 PM