using MauiAppInformatik.ViewModel;
using System;
using System.IO;
namespace MauiAppInformatik
{
public partial class MainPage : ContentPage
{
private string PLOTD()
{
string[] lines = File.ReadAllLines("pickupDA.txt"); // FIX PATH
int seed = DateTime.Now.DayOfYear;
Random random = new Random(seed);
int randomIndex = random.Next(0, lines.Length);
string selectedLine = lines[randomIndex];
return selectedLine;
}
// More code here
using MauiAppInformatik.ViewModel;
using System;
using System.IO;
namespace MauiAppInformatik
{
public partial class MainPage : ContentPage
{
private string PLOTD()
{
string[] lines = File.ReadAllLines("pickupDA.txt"); // FIX PATH
int seed = DateTime.Now.DayOfYear;
Random random = new Random(seed);
int randomIndex = random.Next(0, lines.Length);
string selectedLine = lines[randomIndex];
return selectedLine;
}
// More code here