help with science fair question

I am making a code in game editor for my upcoming science fair. I need it to write a random number from 1-6, without deciamls. So far, it says stuff like "4.7185386914". help me!
Game Editor discussion board
http://game-editor.com/forum/
Thanx wrote:I don't think you've been using the
rand
function, have you?
rand(6); or rand(5) + 1;
that should do it, and as far as I know, it gives integers back doesn't it?
or else:
do this: I know you used some function, do this:
round(the function used);
that'll rond the double to the closest integer!
Cheers! Good luck with the science fair!
![]()