--- /dev/null
+void scen_create_random_weather(void *dest_file, void *scen_file, int month,
+ int turns)
+{
+ int i;
+ int init_cond = 0;
+ int weather[turns];
+ weather[0] = (init_cond == 1) ? 0 : 2;
+ if (month < 3 || month == 12) {
+ for (i = 0; i < turns; i++)
+ if (weather[i] == 2)
+ weather[i]++;
+ }
+ fprintf(dest_file, "weather»");
+ i = 0;
+ while (i < turns) {
+ fprintf(dest_file, "%s",
+ weather[i] == 0 ? "fair" : weather[i] ==
+ 1 ? "clouds" : weather[i] == 2 ? "rain" : "snow");
+ if (i < turns - 1)
+ fprintf(dest_file, "°");
+ i++;
+ }
+}