
-----------------------------------
5c0r910n
Wed Dec 07, 2016 3:10 pm

Need HELP with Random integer steps
-----------------------------------
What is it you are trying to achieve?
I'm trying to create a program that allow the user to specify two numbers and the program will create a random integer within those integers. 


What is the problem you are having?
Now I have achieved that, my problem is that I also need to allow the user to specify a integer step for the random int.


Describe what you have tried to solve this problem
I don't know where to start though...


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
This is all I have right now:





colorback(black)
color(brightgreen)
cls
var a,b,step:int
var c:real
put "This program will prompt you to enter a value for a,b and step. Then the program will generate a random value between a and b, stepping using intevals of step"
put"Please enter the value for a now"
get a
cls
put"Please enter the value for b now"
get b
cls
put "Please enter the step value now"
get step
cls

c:=Rand.Int(a,b)

put c



Please specify what version of Turing you are using
I am currently using turing 4.1

-----------------------------------
5c0r910n
Thu Jan 19, 2017 3:36 pm

RE:Need HELP with Random integer steps
-----------------------------------
Nevermind I solved this one, thanks anyways
