4,707 questions
Hi @Marksdasjkv ,
Please try this query:
;with LoopCounter
as(
select 1 Indexer, ABS(Cast(Cast(CRYPT_GEN_RANDOM(4) as INT) as Float)) / Cast(0x7FFFFFFF as int) RandNumber
union all
select Indexer + 1, ABS(Cast(Cast(CRYPT_GEN_RANDOM(4) as INT) as Float)) / Cast(0x7FFFFFFF as int) RandNumber
from LoopCounter
where
Indexer < 10
)
select *
from LoopCounter
Best regards
Niko
----------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".