Computing.Net > Forums > Programming > nt batch for large numbers random

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

nt batch for large numbers random

Reply to Message Icon

Name: imrsi25
Date: May 31, 2009 at 05:15:05 Pacific
OS: Windows XP PRO
Product: Lenovo / C200
Subcategory: Batch
Comment:

How can I create a NT batch for large random numbers generator?
The largest number is 15,380.931.

Thank you in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 31, 2009 at 05:37:26 Pacific
Reply:

Randomness is a whole other art; maybe witchcraft. Depending on your needs, this may get you started.

===========================
@echo off & setLocal EnableDelayedExpansion

for /L %%a in (1 1 100) do (

set num=!random!!random!!random!!random!
set num=!num:~0,8!
set /a big=!num!%%15380931
echo !big!
)


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: imrsi25
Date: May 31, 2009 at 06:04:02 Pacific
Reply:

M2,
You are the best as always!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: nt batch for large numbers random

NT Batch for delete line www.computing.net/answers/programming/nt-batch-for-delete-line/19359.html

Cmd - Large number work around www.computing.net/answers/programming/cmd-large-number-work-around/17533.html

creating c++ class of a large number www.computing.net/answers/programming/creating-c-class-of-a-large-number/18883.html