Need a Programmer favor

Ford SportTrac Forum

Help Support Ford SportTrac Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

LaRue Medlin

In Memoriam 1955-2017
Joined
Sep 28, 2000
Messages
3,084
Reaction score
4
Location
Sumter, SC
I have a client that has just ordered 300 combo locks for his companies personel lockers. They have arrived but are not combinated. They are ALL set to 0000. Is there someone that can make/run a small script to generate me 300, 4 digit combinations? (the numbers are 1-9 on the dials) Or tell where I might find something to help. Trying to come up with 300 combos out of MY head,,,:blink:,,,,, no way......:huh:.... Also, if you guys can help, it would be so awesome if it could export it's way over to a excel file format. Thanks. I'm going to be spending most of the day stamping a serial number on these locks. FUN FUN FUN:D



THANKS!
 
Last edited by a moderator:
I was just going to play some GuildWars today anyway, I'll give it a whack. Just post here if you get something before I get back to you as I'll keep an eye on this forum most of the day.
 
JD, that's working great, for the most part.... It doesn't generate ALL 4 digit numbers. They range from 1 -4.
 
LaRue, I will email you a spreadsheet...tried the Library, no go.



JDBoxes had it right, he just needed a Custom format for the cells to make them show up with leading zeros.



TJR
 
Last edited by a moderator:
Here is a list generated thru excel, if you see a 5 digit number simply drop the first digit. It was the only way I could keep the zero as a first digit within the formula.



1 8863

2 5002

3 10546

4 6927

5 5774

6 9090

7 5809

8 8933

9 1186

10 10835

11 10146

12 8095

13 10272

14 8699

15 4296

16 8441

17 8162

18 5238

19 5930

20 8436

21 6599

22 4020

23 4184

24 2100

25 2272

26 7220

27 10831

28 5533

29 10151

30 3777

31 7291

32 2650

33 2159

34 1053

35 10406

36 4058

37 3788

38 2128

39 3844

40 8294

41 6191

42 7943

43 7179

44 4760

45 1736

46 8950

47 1356

48 5572

49 4949

50 3314

51 7589

52 7218

53 6328

54 8361

55 9574

56 2789

57 10624

58 9688

59 9624

60 4124

61 4895

62 10350

63 4289

64 7832

65 3871

66 5477

67 1336

68 7498

69 6904

70 1682

71 5296

72 7426

73 8847

74 1817

75 7100

76 3532

77 9916

78 7183

79 9768

80 3173

81 6850

82 2337

83 8325

84 4346

85 2215

86 2586

87 6654

88 3328

89 2204

90 4260

91 7415

92 5771

93 2103

94 3447

95 4097

96 4668

97 5362

98 9828

99 1733

100 2430

101 1660

102 10754

103 5088

104 3465

105 1599

106 2346

107 5695

108 10111

109 7036

110 6497

111 4536

112 1844

113 6717

114 9157

115 2399

116 2032

117 1423

118 5645

119 8548

120 7789

121 7615

122 3589

123 3778

124 10002

125 5421

126 10302

127 6109

128 5031

129 4189

130 9633

131 7899

132 1649

133 2838

134 10732

135 7476

136 6396

137 6410

138 2613

139 3179

140 2705

141 8587

142 4478

143 6889

144 7192

145 5032

146 1811

147 9002

148 8886

149 1158

150 5957

151 2958

152 6741

153 4864

154 5469

155 2179

156 10987

157 3467

158 2003

159 10555

160 6537

161 10475

162 8145

163 7998

164 3051

165 5865

166 10095

167 4575

168 6467

169 6474

170 10070

171 4185

172 8821

173 8648

174 2262

175 9054

176 6989

177 3234

178 4562

179 1422

180 9646

181 5840

182 7971

183 2307

184 3913

185 1669

186 5287

187 6599

188 2434

189 4890

190 3482

191 8712

192 6678

193 4079

194 8448

195 3974

196 4374

197 7753

198 3128

199 3973

200 3758

201 2088

202 6584

203 9744

204 3920

205 9565

206 8357

207 5027

208 6033

209 2952

210 5276

211 10473

212 10316

213 7804

214 10159

215 6561

216 2419

217 1182

218 10181

219 6618

220 3687

221 4194

222 5368

223 7401

224 7011

225 6838

226 6733

227 5063

228 2192

229 1137

230 7652

231 6158

232 8901

233 7318

234 8721

235 6094

236 10302

237 8232

238 4628

239 4665

240 3162

241 4500

242 6080

243 7064

244 5815

245 3642

246 6019

247 9121

248 9110

249 1445

250 4125

251 7324

252 7151

253 3713

254 2831

255 7371

256 6021

257 3450

258 10877

259 4125

260 1271

261 1587

262 5996

263 7508

264 3504

265 6450

266 7057

267 6682

268 10227

269 3948

270 3199

271 7659

272 5443

273 5534

274 5194

275 5075

276 6132

277 10435

278 2416

279 1955

280 1357

281 6459

282 4905

283 2701

284 8042

285 5997

286 5936

287 9983

288 9214

289 1145

290 4316

291 7902

292 2979

293 5533

294 4401

295 7003

296 10678

297 9364

298 6646

299 7920

300 7409<BR
 
http://www.blertdiscorporated.com/blerttemp/ComboGen.zip



Give it an amount and a range and hit go. Duplicate checking. It creates a comma delimited text file that can easily be opened in excel.



Looks like you got it sussed though. Oh well, I'll leave it up anyway just in case.
 
Last edited by a moderator:
Here is a free on-line number generator. You simply put in the lowest and the highest number and how many numbers you want.



There is no provision to ensure you get a 4 digit number. But,,, if you say your lowest number is 1000 then you will get only 4 digit numbers back.



Or, simply add Zero's in front of the 2 or 3 digit numbers as there are no duplicates in the list anyways....
 
LaRue--



Seeing that you didn't say they need to be random, I'll give it a shot...



0001

0002

0003

0004....



:D



On a serious side, though--



Wouldn't it be easier, and more cost effective, to simply purchase 300 locks pre-set with combinations? I don't know the industry at all, but I would have guessed that the amount you're saving by buying uncombinated locks isn't enough to justify the extra labor you're needing to put into it. Note that I'm asking this completely out of personal curiosity--I'm in no way trying to cast doubt on your locksmith practices.
 
Last edited by a moderator:
i would think the user would like to enter their own combo?? i set all of my locks with the same numbers so i don't have to remember a bunch of numbers... you may be going throught too much trouble LaRue... did the company ask for all of them to have different numbers?? if i was handoing out locks to 300 employees, it would be easier for me to tell them they are preset to 0000 and they can change it to their own number...



just a thought??



troy
 
LaRue,

I would do it for you but it appears that Coastiejoe has already done it for you. Since he used a random number generator function, the only thing you may need to check is to insure there are no duplicate combinations (Yes random numbers can have duplicates).



...Rich
 
LaRue,



Notwithstanding the excellent replies you've already had, I've sent you an email with an Excel file attached. Hope it helps you with any future similar needs.



Kruncher
 
Thanks everyone, you got me what I needed. BillV, all the locks come set to 0000, no choice....

TroY,, These are being issued to each worker for their personal locker and THEY want to control the combo's. They want me to set the combo's, they don't have the time... EDIT OUT;) So I'll take the job and do it... Thanks Coastie, Thanks TJR, JDRBoxes dude....:D:D



AS ALWAYS,,,,,,,,,,,, YOU GUYS ARE AWESOME,,,,,,,,,, THANKS A MILLION
 
Last edited by a moderator:
So, no need for the little app I threw together this morn? I'll remove it from my downloadables in the morning.
 
Actually LaRue I could code this for you if you needed but as many others have pointed out that you alreadly have the tools at hand to do it... if you need a Palm PDA version let me know i might be able to wip it up...



Excel and VBA scrpit on alaptop is your best option at this point, it should be a simple application and log the values to a database for reference for you and the customer in the future,



let me know if you need some thing like this, again there must best some thing like this out there already....
 

Latest posts

Top