Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 06-13-05   #11 (permalink)
PC Gamer
 
kris_cs1's Avatar
 
amd ati

Join Date: Apr 2005
Location: Chester, Cheshire
Posts: 218

Rep: 27 kris_cs1 is acknowledged by some
Unique Rep: 24
FAQs Submitted: 1
Trader Rating: 0
Default

well i have no idea what that language is but if i where to do it it in LB, it would be like this:

Code:
 
FOR num = 1 TO Level
Number$ = Number$ ; STR$( INT(RND(1)*10) )
NEXT num
Number = VAL(Number)
This basically randomly generates a 1 digit number for each level you are on. E.g. if you are are level 4 then the Level variable would equal 4 and the FOR NEXT loop would run 4 times and generate 4 random one digit numbers. It would then put all of the numbers together in a STRING variable (so that they do not just add together) and then convert it to a number variable.
E.g.
First Loop: Number$ = 1
Second Loop: Number$ = 16
Third Loop: Number = 160
Forth Loop: Number$ = 1608

However, I'm not sure how this would work in turing....
__________________
Kris



System: My System
CPU
AMD Sempron 2800+
Motherboard
ASUS A7N8X-VM
Sound Card
5.1 SURROUND SOUND
Power Supply
350W
Case
Black
OS
Windows XP Home SP2
Monitor
19"

Last edited by kris_cs1 : 06-13-05 at 06:27 AM.
kris_cs1 is offline   Reply With Quote
Old 06-13-05   #12 (permalink)
Programmer
 
speX's Avatar
 
intel nvidia

Join Date: Mar 2005
Posts: 206

Rep: 2 speX Unknown
Unique Rep: 2
Trader Rating: 0
Default

ok i got it working thx for all your help
__________________
System: Intel
CPU
Q6600 G0
Motherboard
Asus P5K Deluxe
Memory
Corsair DDR2 XMS 2GB
Graphics Card
BFG 8800 GTS OC
Hard Drive
Seagate 250GB SATAII, Seagate 500GB SATAII
Sound Card
Onboard
Power Supply
OCZ Game X Stream 700 WATTS
CPU cooling
stock
GPU cooling
stock
OS
Windows Vista 32 bit
Monitor
LG 21.6 Inch Widescreen
speX is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 07:47 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.20089 seconds with 8 queries