OK this is getting really BAD!!! I get the SAME number each time I restart my game. I want RANDOM or at least Psuedo random!!! Can no one fix this???
-RZ
-RZ
; ############################# ; Board Thingy ; ; If you use something from this a THANK YOU would be nice! ; Rook Zimbabwe aka SSG R. W. Dunn TXSG ; 5 MARCH 2005 ; ############################# Graphics3D 800,600,32,1 SetBuffer BackBuffer() SeedRnd=(MilliSecs()) Dim boardarea(11) Dim boardx(11) Dim boardy(11) For fillx = 0 To 10 ;For filly = 0 To 9 reseed=Rnd(99999) SeedRnd(MilliSecs()+reseed) colr=Rnd(5) boardarea(fillx)=colr ;Next Next While Not KeyHit(1) Cls If KeyDown(57) Then FreeEntity gamePivot ;---------------- added by Blackjumper gamePivot = CreatePivot() ;---------------- added by BlackJumper Cls For fillx = 0 To 10 ;For filly=0 To 9 colr=Rnd(5) ;boardarea(fillx,filly)=colr boardarea(fillx)=colr ;Next Next EndIf Text 0,100,"ROW: "+boardarea(0)+boardarea(1)+boardarea(2)+boardarea(3)+boardarea(4)+boardarea(5)+boardarea(6)+boardarea(7)+boardarea(8)+boardarea(9) Flip Wend EndOK now when I run it I get more random numbers... BUT I HAVE TO RESEED EACH TIME!!!
For fillx = 0 To 10
;For filly = 0 To 9
;reseed=Rnd(99999)
;SeedRnd(MilliSecs()+reseed)
colr=Rnd(5)
boardarea(fillx)=colr
;Next
Next
You get the SAME number. Un rem them and new numbers... This is a bug I am sure!; ############################# ; Board Thingy ; ; If you use something from this a THANK YOU would be nice! ; Rook Zimbabwe aka SSG R. W. Dunn TXSG ; 5 MARCH 2005 ; ############################# Graphics3D 800,600,32,2 SetBuffer BackBuffer() SeedRnd MilliSecs() Dim boardarea(11) Dim boardx(11) Dim boardy(11) For fillx = 0 To 10 ;For filly = 0 To 9 colr=Rnd(5) boardarea(fillx)=colr ;Next Next While Not KeyHit(1) Cls If KeyDown(57) Then FreeEntity gamePivot ;---------------- added by Blackjumper gamePivot = CreatePivot() ;---------------- added by BlackJumper Cls For fillx = 0 To 10 ;For filly=0 To 9 colr=Rnd(5) ;boardarea(fillx,filly)=colr boardarea(fillx)=colr ;Next Next EndIf Text 0,100,"ROW: "+boardarea(0)+boardarea(1)+boardarea(2)+boardarea(3)+boardarea(4)+boardarea(5)+boardarea(6)+boardarea(7)+boardarea(8)+boardarea(9) Flip Wend End